結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
のらら
|
| 提出日時 | 2025-01-13 00:12:17 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 724 bytes |
| コンパイル時間 | 5,756 ms |
| コンパイル使用メモリ | 174,556 KB |
| 実行使用メモリ | 26,240 KB |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2025-01-25 22:14:14 |
| 合計ジャッジ時間 | 12,367 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 41 |
ソースコード
//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;
}
のらら