Duff's Device 请求一战
#include<stdio.h>voidprintNFibonacci(intn){intt=(n+4)/5;inta=0,b=1;switch(n%5){case0:do{printf("%d",a+b);a^=b^=a^=b;a+=b;case4:printf(" %d"+!a,a+b);a^=b^=a^=b;a+=b;case3:printf(" %d"+!a,a+b);a^=b^=a^=b;a+=b;case2:printf(" %d"+!a,a+b);a^=b^=a^=b;a+=b;case1:printf(" %d"+!a,a+b);a^=b^=a^=b;a+=b;putchar('\n');}while(--t);}}intmain(){printNFibonacci(30);return0;}