比赛 |
2025暑期集训第7场 |
评测结果 |
W |
题目名称 |
天气预报 |
最终得分 |
0 |
用户昵称 |
淮淮清子 |
运行时间 |
0.006 s |
代码语言 |
C++ |
内存使用 |
3.56 MiB |
提交时间 |
2025-08-11 17:25:45 |
显示代码纯文本
#include<bits/stdc++.h>
#include<ctime>
using namespace std;
int main(){
freopen("weather_forecast.in","r",stdin);
freopen("weather_forecast.out","w",stdout);
cin.tie(0) -> ios::sync_with_stdio(0);
srand(time(NULL));
int n;
while(cin >> n){
if(n == 0) return 0;
for(int j = 1;j <= n;j ++){
for(int i = 1;i <= 16;i ++){
int x;
cin >> x;
}
}
int a = 1;
int b = 100;
int r = a + std::rand() % (b - a + 1);
cout << r % 2 << '\n';
}
return 0;
}