結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
![]() |
提出日時 | 2025-01-13 00:14:33 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 728 bytes |
コンパイル時間 | 4,227 ms |
コンパイル使用メモリ | 174,988 KB |
実行使用メモリ | 26,200 KB |
平均クエリ数 | 18.55 |
最終ジャッジ日時 | 2025-01-25 22:14:13 |
合計ジャッジ時間 | 9,036 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 WA * 19 |
ソースコード
//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; }