結果

問題 No.231 めぐるはめぐる (1)
ユーザー focusfocus
提出日時 2018-02-21 01:01:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 69,508 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 17:00:15
合計ジャッジ時間 3,755 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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>ans*6)  cout << "NO";
    else{
        cout <<"YES\n";
        for(i=0;i<6;i++)    cout << ans << endl;
    }    
    return 0;
}
0