#include #include #include // Yukicoder №1423 Triangle of Multiples ★☆ // https://yukicoder.me/problems/no/1423 // *********************** #define gc(c) do{c = getchar();}while(0) #define GETLINE(str) do{char *p;fgets(str,sizeof(str),stdin);p=strchr(str,'\n');if(p)*p='\0';}while(0) static char *GETWORD(char* str) {char c;char *cp;cp=&str[0];gc(c);while(c!=EOF){if((c==' ')||(c=='\n'))break;*cp++=c;gc(c);}*cp='\0';return &str[0];} static int GETLINEINT(void) {char s[34];GETLINE(s);return atoi(s);} static int GETWORDINT(void) {char s[34];GETWORD(s);return atoi(s);} #define Yes(a) printf("%s",((a)?"Yes":"No")) // ********************* static int min(int a,int b){if(a