#include "cstdio" int n; int main() { scanf ("%d", &n); if (n<=15) printf ("8\n"); else if (n<=100) printf ("123\n"); else if (n<=180) printf ("534\n"); else if (n<=340) printf ("798\n"); else if (n<=500) printf ("1285\n"); else if (n<=1000) printf ("42543\n"); else if (n<=1300) printf ("345353\n"); else printf ("53465346\n"); return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include "cstdio" int n; int main() { scanf ("%d", &n); if (n<=15) printf ("8\n"); else if (n<=100) printf ("123\n"); else if (n<=180) printf ("534\n"); else if (n<=340) printf ("798\n"); else if (n<=500) printf ("1285\n"); else if (n<=1000) printf ("42543\n"); else if (n<=1300) printf ("345353\n"); else printf ("53465346\n"); return 0; } |