初学者专用题解
2026-01-29 12:23:38
发布于:安徽
6阅读
0回复
0点赞
没什么好说的……
#include<bits/stdc++.h>//万能头文件,好习惯。
using namespace std;
int main() {
int n,m,a[3]={1,1,1},x;
cin>>n>>m>>x;
if(5+n+15>x) a[0]=0;
if(10+m+15>x) a[1]=0;
if(17+15>x) a[2]=0;
if(a[0]==1||a[1]==1||a[2]==1) cout<<"on time";
else cout<<"late";
return 0;
}
这里空空如也



有帮助,赞一个