您的位置:首页 > 其它

NYOJ 53 不高兴的小明

2014-02-11 15:11 183 查看
原题链接

简单题

附ac代码:

#include <stdio.h>
struct Unhappy{
int day, time;
};

int main(){
Unhappy stu;
int t, a, b;
scanf("%d", &t);
while(t--){
stu.time = stu.day = 0;
int i = 0;
while(i++ < 7){
scanf("%d%d", &a, &b);
if(a + b - 8 > stu.time)
stu.time = a + b - 8, stu.day = i;
}
printf("%d\n", stu.day);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  NYOJ