mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1759_XXXXcount.c
This commit is contained in:
parent
c22d938792
commit
7f885cf820
25
QUSTOJ/1759_XXXXcount.c
Normal file
25
QUSTOJ/1759_XXXXcount.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a,b,sum;
|
||||||
|
scanf("%d %d",&a,&b);
|
||||||
|
sum=a+b;
|
||||||
|
switch(sum)
|
||||||
|
{
|
||||||
|
case 17:
|
||||||
|
printf("6/11=1/2+1/22\n");
|
||||||
|
break;
|
||||||
|
case 101:
|
||||||
|
printf("11/90=1/9+1/90\n");
|
||||||
|
break;
|
||||||
|
case 204:
|
||||||
|
printf("87/117=1/2+1/5+1/23+1/8970\n");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf("undefined.\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user