結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-16 18:36:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 471 bytes |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 64,708 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-16 05:43:40 |
| 合計ジャッジ時間 | 3,110 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 11 |
ソースコード
#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