結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-02-21 01:03:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 450 bytes |
| コンパイル時間 | 912 ms |
| コンパイル使用メモリ | 68,628 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-13 15:42:41 |
| 合計ジャッジ時間 | 2,632 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 8 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cstdio>
using namespace std;
int main(){
long long N,G,D,m=0,i,ans=0;
cin >> N;
for(i=0;i<N;i++){
cin >> G >> D;
if(m<(G-3000*D)){
m = G-30000*D;
ans = i+1;
}
}
if(3000000>m*6) cout << "NO";
else{
cout <<"YES\n";
for(i=0;i<6;i++) cout << ans << endl;
}
return 0;
}
focus