結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-16 18:36:23 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 471 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 82,896 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-05 11:03:23 |
| 合計ジャッジ時間 | 2,899 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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