Skip to content

Instantly share code, notes, and snippets.

@macrat
Last active December 9, 2019 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macrat/f826f9397503dba641b9ed381560898b to your computer and use it in GitHub Desktop.
Save macrat/f826f9397503dba641b9ed381560898b to your computer and use it in GitHub Desktop.
がんばってかいたFizzBuzz。gcc 4.9.4で-Wallを付けてもエラーやワーニングが表示されないことを確認済み。
#include <stdio.h>
#include <stdint.h>
int main() {
for (uint32_t i=1; i<=30; i++) {
uint64_t x = 8825495485607995750u - (i%3>0) * (8825495483553149956u - (((i/10+12336+(i%10<<8))>>(8*(i<10))) - 9621248592211244386u) * (i%5>0)) - 8825495483553153024u*(i%5>0);
puts((char*)&x);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment