結果
| 問題 | No.3011 あ、俺こいつの役やりたい! |
| コンテスト | |
| ユーザー |
のらら
|
| 提出日時 | 2025-01-13 00:14:33 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 728 bytes |
| 記録 | |
| コンパイル時間 | 3,160 ms |
| コンパイル使用メモリ | 263,088 KB |
| 実行使用メモリ | 30,236 KB |
| 平均クエリ数 | 18.98 |
| 最終ジャッジ日時 | 2026-06-23 20:20:09 |
| 合計ジャッジ時間 | 8,091 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 21 |
ソースコード
//1と5*10^8以外乱択(嘘解法)
//テストケースが弱いと通る
#include <iostream>
#include <algorithm>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
int randInt(int L, int R){
return rand() % (R - L + 1) + L;
}
int main(){
vector<int> v;
v.push_back(1);
v.push_back(5*1e8);
srand((unsigned)time(NULL));
for(int i = 1; i <= 28; i++){
v.push_back(randInt(2, 5*1e8 - 1));
}
sort(v.begin(), v.end());
/*for(int i = 0; i < 30; i++) cout << v[i] << " ";
cout << endl;*/
for(int i = (int)v.size() - 1; i >= 0; i--){
cout << v[i] << endl;
cout.flush();
int ret;
cin >> ret;
if(ret == 0) continue;
else break;
}
return 0;
}
のらら