计蒜客 28206.Runway Planning (BAPC 2014 Preliminary ACM-ICPC Asia Training League 暑假第一阶段第一场 F)

F. Runway Planning

传送门

题意简直就是有毒,中间bb一堆都是没用的,主要的意思就是度数大于180度的就先减去180度,然后除以10,四舍五入的值就是答案。如果最后结果是0就输出18就可以,其他没了,看懂题意就是水题。

代码:

 1 #include<iostream>
 2 #include<cstdio>
 3 #include<cstring>
 4 #include<cmath>
 5 #include<algorithm>
 6 #include<cstdlib>
 7 using namespace std;
 8 typedef long long ll;
 9 const int maxn=1e5+10;
10 int main(){
11     int t;
12     scanf("%d",&t);
13     while(t--){
14         int n,ans;
15         scanf("%d",&n);
16         if(n>=180)n-=180;
17         int cnt=n%10;
18         if(cnt>=5)ans=n/10+1;
19         else ans=n/10;
20         if(ans==0){
21             if(cnt>=5)ans=1;
22             else ans=18;
23         }
24         printf("%02d
",ans);
25     }
26 }

其他题并不想补题,因为不想看题目猜题意,去看别的东西了。

吐槽一下,这场比赛全是阅读理解题,我看不懂题意,以后要训练一下读题能力,英语等级考试水平和能不能读懂题一毛钱关系都没有。

Debug能力也要训练一下,因为自己Debug能力实在是差到变形。

受不了,为什么我队友还不理我,简直要哭死了(我错了,我错了,小声bb。。。)

原文地址:https://www.cnblogs.com/ZERO-/p/9729073.html