mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
244 B
C
14 lines
244 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
|
|
int g,m,c;
|
|
for(g=0;g<21;++g)
|
|
for(m=0;m<35;m++)
|
|
for(c=0;c<100;c+=3)
|
|
if(g*5+m*3+c/3==100&&g+m+c==100)
|
|
printf("%d\t%d\t%d\n",g,m,c);
|
|
return 0;
|
|
}
|