-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path版本号.c
More file actions
35 lines (34 loc) · 757 Bytes
/
版本号.c
File metadata and controls
35 lines (34 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <stdio.h>
int main()
{
int n,i;
int a,b,c,x,y,z;
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("input the first group version No.:£¨Ö÷°æ±¾ºÅ ×Ó°æ±¾ºÅ ÐÞ¶©ºÅ £©\n");
scanf("%d%d%d",&a,&b,&c);
printf("input thesecond group version No.:£¨Ö÷°æ±¾ºÅ ×Ó°æ±¾ºÅ ÐÞ¶©ºÅ £©\n");
scanf("%d%d%d",&x,&y,&z);
if(a>x)
printf("Output:\nFirst\n");
else if(a<x)
printf("Output:\nSecond\n");
else
{
if(b>y)
printf("Output:\nFirst\n");
else if(b<y)
printf("Output:\nSecond\n");
else
{
if(c>z)
printf("Output:\nFirst\n");
else if(c<z)
printf("Output:\nSecond\n");
else printf("Output:\nSame\n");
}
}
}
return 0;
}