竞赛
考级
空降坐标:CP003026 请看代码
LiWei
法兰西玫瑰
阿瓦达啃大瓜
#include<bits/stdc++.h> using namespace std; int main(){ //字符串类型:string,数字类型:int,long long,字符类型:char,小数类型:double,float long long x,y; string a="late",b="on time" cin>>x>>y; if(x*60+y+45<=480) cout<<b; else cout<<a; }
AC神
一枚button
#include <iostream> using namespace std;int main(){int h,f;cin>>h>>f;f+=45;if(f>=60){h++;f-=60;}if(h<8||h8 && f0){cout<<"on time";}else{cout<<"late";}return 0;}
烦村vvds
#include <iostream> using namespace std; int main(){ int a,b,sum; cin>>a>>b; sum=a60+b+45; if (sum<=860) cout<<"on time"; else cout<<"late"; }
屑小M
#include<iostream> using namespace std; int main(){ int a,b; cin >> a >> b; if((a==7&&b>15)||(a>7)){ cout << "late"; }else{ cout << "on time"; } return 0; }
爱吃的圆吨吨
#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; b+=45; if(b>=60){ a++; b-=60; }if(a<8||a8&&b0){ cout<<"on time"; }else{ cout<<"late"; } return 0; }
许肄霄
6.
_1943
嫌疑を避ける ~~
#include <iostream> using namespace std; int main(){ int a,b; scanf("%d%d",&a,&b); int s1=480,s2=a*60+b; if(s1-s2>=45) printf("on time\n"); else printf("late\n"); return 0; }
Voldemort