結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-27 12:06:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 557 ms |
| コンパイル使用メモリ | 69,376 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 18:26:04 |
| 合計ジャッジ時間 | 3,069 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 WA * 10 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char* argv[])
{
int N;
cin>>N;
vector<int> G(N),D(N);
int i;
for (i=0;i<N;i++){
cin>>G[i]>>D[i];
}
int n;
int exp=0;
i=0;
for (n=1;n<=6;n++){
exp+=G[i]-30000*D[i];
i++;
i%=N;
}
if (exp>=30000){
cout<<"YES"<<endl;
i=1;
for (n=1;n<=6;n++){
cout<<i<<endl;
i++;
if (i>N){
i=1;
}
}
}else{
cout<<"NO"<<endl;
}
return 0;
}