結果
問題 | No.3093 Please GCD |
ユーザー | SnowBeenDiding |
提出日時 | 2024-03-01 18:28:26 |
言語 | C++23 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 4,186 ms |
コンパイル使用メモリ | 244,200 KB |
実行使用メモリ | 24,012 KB |
平均クエリ数 | 8099.53 |
最終ジャッジ日時 | 2024-03-01 18:28:45 |
合計ジャッジ時間 | 17,197 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 25 ms
24,000 KB |
testcase_01 | AC | 25 ms
24,000 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 321 ms
24,000 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 340 ms
24,012 KB |
testcase_10 | AC | 23 ms
24,012 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 51 ms
24,012 KB |
testcase_16 | AC | 367 ms
24,012 KB |
testcase_17 | AC | 356 ms
24,012 KB |
testcase_18 | AC | 328 ms
24,012 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 327 ms
24,012 KB |
testcase_22 | WA | - |
testcase_23 | AC | 320 ms
24,012 KB |
testcase_24 | AC | 318 ms
24,012 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 318 ms
24,012 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
ソースコード
#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; }