結果
問題 | No.3093 Please GCD |
ユーザー |
|
提出日時 | 2022-04-01 22:03:58 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 2,038 ms |
コンパイル使用メモリ | 201,104 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 7008.27 |
最終ジャッジ日時 | 2024-04-30 14:06:23 |
合計ジャッジ時間 | 14,666 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 26 ms
24,836 KB |
testcase_01 | AC | 25 ms
24,580 KB |
testcase_02 | AC | 29 ms
24,836 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 34 ms
24,836 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 38 ms
24,964 KB |
testcase_10 | AC | 23 ms
24,964 KB |
testcase_11 | AC | 37 ms
25,076 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 137 ms
24,964 KB |
testcase_15 | AC | 40 ms
24,580 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long int; int main(){ ll N; cin >> N; for(ll i = N;i >= 1;i--){ cout << "? " << i << endl; ll a; cin >> a; if(a == i){ cout << "! " << a << endl; return 0; } } }