結果
問題 |
No.253 ロウソクの長さ
|
ユーザー |
|
提出日時 | 2018-09-10 02:14:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 536 ms |
コンパイル使用メモリ | 65,544 KB |
実行使用メモリ | 25,928 KB |
平均クエリ数 | 101.00 |
最終ジャッジ日時 | 2024-07-16 16:06:24 |
合計ジャッジ時間 | 10,374 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 36 |
ソースコード
#include <iostream> using namespace std; int ask(int Y){ cout << "? " << Y << endl; int res; cin >> res; return res; } int main(){ int res = 123; for(int i=0;i<100;i++){ int Y = rand() % 10000; if(ask(Y) == 0){ res = 456; break; } } cout << "! " << res << endl; return 0; }