結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-16 18:42:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 471 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 64,428 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-16 05:43:47 |
| 合計ジャッジ時間 | 1,853 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 5 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> G(n);
int x,y;
int total = 0;
for(int i = 0; i < n; i++){
cin >> x >> y;
G[i] = x-(30000*y);
}
sort(G.begin(),G.end());
for(int i = 0; i < 6; i++) total += G[n-1];
if(total >= 3000000){
cout << "YES" << endl;
for(int i = 0; i < 6; i++){
cout << n << endl;
}
}else{
cout << "NO" << endl;
}
return 0;
}
zaichu