結果

問題 No.231 めぐるはめぐる (1)
ユーザー Shawn stayCShawn stayC
提出日時 2020-07-06 12:25:38
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 1,535 ms
コンパイル使用メモリ 168,616 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 22:02:28
合計ジャッジ時間 3,420 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;

int main(){
	int n; cin>>n;
	vector<int> v(n);
	int ans=-1;
	rep(i,n){
		int g,d; cin>>g>>d;
		v[i]=g-30000*d;
		if(v[i]>=100000) ans=i+1;
	}
	if(ans==-1) cout<<"NO"<<endl;
	else {
		cout<<"YES"<<endl;
		rep(i,6) cout<<ans<<endl;
	}
}
0