結果

問題 No.3115 One Power One Kill
ユーザー Mistletoe
提出日時 2025-04-19 10:06:53
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 530 bytes
コンパイル時間 2,070 ms
コンパイル使用メモリ 192,636 KB
実行使用メモリ 26,492 KB
平均クエリ数 1.00
最終ジャッジ日時 2025-04-19 10:06:59
合計ジャッジ時間 6,179 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    // 1) Send A=1, B=1
    long long A = 1, B = 1;
    cout << A << " " << B << endl;   // endl flushes

    // 2) Read back K = gcd(X, 1) == 1
    long long K;
    if (!(cin >> K)) return 0;

    // 3) Output our guess X' = X^A mod B = X^1 mod 1 == 0
    cout << 0 << endl;

    // 4) Read the judge's verdict (ret)
    int ret;
    cin >> ret;
    // ret==1 means we succeeded; we can just exit.
    return 0;
}
0