結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 14:13:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 1,333 ms |
| コンパイル使用メモリ | 161,048 KB |
| 実行使用メモリ | 66,284 KB |
| 最終ジャッジ日時 | 2025-01-25 23:13:06 |
| 合計ジャッジ時間 | 139,193 ms |
|
ジャッジサーバーID (参考情報) |
judge8 / judge9 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 44 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int m; cin >> m;
int l = 1, r = 1000000001;
while (l + 1 < r) {
int mid = (l+r)/2;
cout << mid << endl;
int x; cin >> x;
if (x == 1) {
l = mid;
}
else r = mid;
}
cout << l << endl;
}