結果

問題 No.8093 Please GCD
ユーザー 👑 CleyL
提出日時 2022-07-26 18:24:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 66,004 KB
最終ジャッジ日時 2025-01-30 14:17:34
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int n;cin>>n;
    int ret = 0;
    for(int i = 1; n >= i; i++){
        cout << "? " << i << endl;
        int x;cin>>x;
        ret = max(x,ret);
    }
    cout << ret << endl;
}
0