Hello Bot is a user on mastodon.toycode.com. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

@riceball0712
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz

Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][5]={"","Fizz"};
char b[2][5]={"","Buzz"};
char c[2][5]={"",""};
int i;
for(i=1;i<=100;i++){
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
snprintf(c[0], 4, "%d", i);
printf("%s",c[((3-(i%3))/3)|((5-(i%5))/5)]);
printf("\n");
}
return 0;
}
/*
数字出すとこOR演算でええやんってなった
*/

@riceball0712
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz

Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][9]={"","Fizz"};
char b[2][9]={"","Buzz"};
char c[3][4]={"","",""};
int i;
for(i=1;i<=100;i++){
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
snprintf(c[0], 4, "%d", i);
printf("%s",c[((3-(i%3))/3)+((5-(i%5))/5)]);
printf("\n");
}
return 0;
}
/*
if文縛りでちゃんとしたFizzBuzz作れた
*/

@riceball0712
1 :
2 :
3 : Fizz
4 :
5 : Buzz
6 : Fizz
7 :
8 :
9 : Fizz
10 : Buzz
11 :
12 : Fizz
13 :
14 :
15 : FizzBuzz
16 :
17 :
18 : Fizz
19 :
20 : Buzz
21 : Fizz
22 :
23 :
24 : Fizz
25 : Buzz
26 :
27 : Fizz
28 :
29 :
30 : FizzBuzz
31 :
32 :
33 : Fizz
34 :
35 : Buzz
36 : Fizz
37 :
38 :
39 : Fizz
40 : Buzz
41 :
42 : Fizz
43 :
44 :
45 : FizzBuzz
46 :
47 :
48 : Fizz
49 :
50 : Buzz
51 : Fizz
52 :
53 :

Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][9]={"","Fizz"};
char b[2][9]={"","Buzz"};
int i;
for(i=1;i<=100;i++){
printf("%3d : ",i);
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
printf("\n");
}
return 0;
}

@TonyMoooori
a.c:1:162: warning: return type defaults to 'int' [-Wimplicit-int]
char *s="+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.",*a,m[99]={},p=0,k[99]={},c,b=0;f(int i){c=s[i];if(!c)return;c==43&&(*a)++;c==45&&(*a)--;c==62&&a++;c==60&&a--;c==46&&putchar(*a);c==44&&(*a=getchar());c==93&&(i=k[--p]);if(c==91){if(*a)k[p++]=i-1;else{while(1){c=s[i];c==91&&b++;c==93&&b--;if(!b)break;i++;}}}f(i+1);}int main(){a=m

@TonyMoooori
a.c:1:162: warning: return type defaults to 'int' [-Wimplicit-int]
char *s="+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.",*a,m[99]={},p=0,k[99]={},c,b=0;f(int i){c=s[i];if(!c)return;c==43&&(*a)++;c==45&&(*a)--;c==62&&a++;c==60&&a--;c==46&&putchar(*a);c==44&&(*a=getchar());c==93&&(i=k[--p]);if(c==91){if(*a)k[p++]=i-1;else{while(1){c=s[i];c==91&&b++;c==93&&b--;if(!b)break;i++;}}}f(i+1);}main(){a=m;f(0

Hello Bot boosted

@hello hotaisfamicon.js
console.log('ほたはファミコン'.replace(/^(.)(.{2,})(.)$/, (a, s, n, e) => `${s}${n.length}${e}`));

@riceball0712
おっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱいおっぱい

Hello Bot boosted

@hello
a.c
#include<stdio.h>
int main(){
int i;
for(i=0;i<100;i++){
printf("おっぱい");
}
return 0;
}

@pacochi
 ,  _ノ)
γ∞γ~  \
| / 从从) )
⧵ | | l l |〃
 `从ハ~ ワノ)

Hello Bot boosted

@hello hanya-n.js
s='';for(n of'񂠈򃢡𺓤⇡𘈠𱢨𨙈𚁠𐁈𝀵򙦤񃅥')for(i=4;i--;)s+=' \nl|~)从γ ∞,ノワハノ\_/⧵`〃 '[(n.codePointAt()>>i*5)%32];console.log(s)

@unarist
,  _ノ)
γ∞γ~  \
| / 从从) )
⧵ | | l l |〃
 `从ハ~ ワノ)

Hello Bot boosted

@hello hanya-n.php
 ,  _ノ)
γ∞γ~  \
| / 从从) )
⧵ | | l l |〃
 `从ハ~ ワノ)

@pacochi
 ,  _ノ)
γ∞γ~  \
| / 从从) )
⧵ | | l l |〃
 `从ハ~ ワノ)

Hello Bot boosted

@hello hanya-n.js
console.log([...'8a08ge51797408f130h0665851i8383020283k1lj6d48cb5'].map(n=>' \nl|~)从γ ∞,ノワハノ\_/⧵`〃 '[parseInt(n,22)]).join``);

Hello Bot boosted