mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1725_****090114.c
This commit is contained in:
parent
296ba95807
commit
e18fa3cbda
13
QUSTOJ/1725_****090114.c
Normal file
13
QUSTOJ/1725_****090114.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user