結果

問題 No.3115 One Power One Kill
ユーザー Mistletoe
提出日時 2025-04-19 10:18:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 602 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 193,136 KB
実行使用メモリ 26,540 KB
平均クエリ数 1.00
最終ジャッジ日時 2025-04-19 10:18:16
合計ジャッジ時間 6,321 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:
    //    A ≡ 0 (mod 10^9+7) ⇒ Y = 0^B = 0 ⇒ K = gcd(X,0) = X
    ll A = MOD, B = 1;
    cout << A << " " << B << endl << flush;

    // 2) Read K = X
    ll X;
    if (!(cin >> X)) return 0;

    // 3) Compute X' = X^A mod B = X^(1e9+7) mod 1 = 0
    ll Xp = 0;
    cout << Xp << endl << flush;

    // 4) Read verdict (1 = correct, 0 = wrong)
    int verdict;
    cin >> verdict;
    // done
    return 0;
}
0