結果
| 問題 |
No.8093 Please GCD
|
| コンテスト | |
| ユーザー |
SnowBeenDiding
|
| 提出日時 | 2024-03-01 18:28:26 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 381 bytes |
| コンパイル時間 | 2,939 ms |
| コンパイル使用メモリ | 243,128 KB |
| 実行使用メモリ | 25,476 KB |
| 平均クエリ数 | 8099.53 |
| 最終ジャッジ日時 | 2024-09-29 13:15:16 |
| 合計ジャッジ時間 | 15,235 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 15 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
int ans = 0;
rep(i, 1, n + 1) {
cout << "? " << i << endl;
fflush(stdout);
int input;
cin >> input;
if (input == i) ans = i;
}
cout << "! " << ans << endl;
}
SnowBeenDiding