結果

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

ソースコード

diff #

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

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

    const ll MOD = 1000000007;
    // 1) Query the judge:
    //    A = MOD, B = MOD
    cout << MOD << " " << MOD << endl << flush;

    // 2) Read K = gcd(X, A^B mod MOD) = gcd(X,0) = X
    ll K;
    if (!(cin >> K)) return 0;

    // 3) Guess X' = X (since X^(MOD) mod MOD = X)
    cout << K << endl << flush;

    // 4) Read verdict (not really needed)
    int verdict;
    cin >> verdict;
    return 0;
}
0