Create 1342.cpp

This commit is contained in:
Kirigaya Kazuto 2016-07-06 09:51:19 +08:00 committed by GitHub
parent b432dac061
commit 0713bc5744

15
QUSTOJ/1342.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <cstdio>
#define STR_A "6 its factors are 1 2 3 "
#define STR_B "28 its factors are 1 2 4 7 14 "
#define STR_C "496 its factors are 1 2 4 8 16 31 62 124 248 "
#define STR_D "8128 its factors are 1 2 4 8 16 32 64 127 254 508 1016 2032 4064 "
int main()
{
int n;
scanf("%d",&n);
if(n>=6) puts(STR_A);
if(n>=28) puts(STR_B);
if(n>=496) puts(STR_C);
if(n>=8128) puts(STR_D);
return 0;
}