これが最短?
# include <iostream>
int main(){for(int i=0;++i<100;)printf("FizzBuzz\n\0Fizz\n\0%d\n"+(i%15?i%5?i%3?16:10:4:0),i);}
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
これが最短?
# include <iostream>
int main(){for(int i=0;++i<100;)printf("FizzBuzz\n\0Fizz\n\0%d\n"+(i%15?i%5?i%3?16:10:4:0),i);}
Register as a new user and use Qiita more conveniently
Go to list of users who liked