結果
| 問題 | No.3522 冪乗乗 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-01 23:04:51 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 588 bytes |
| 記録 | |
| コンパイル時間 | 1,330 ms |
| コンパイル使用メモリ | 209,100 KB |
| 実行使用メモリ | 30,320 KB |
| 平均クエリ数 | 55.25 |
| 最終ジャッジ日時 | 2026-05-01 23:05:11 |
| 合計ジャッジ時間 | 17,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 63 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
#define REP(i,n) for(ll i=0;i<ll(n);i++)
int main(void){
cin.tie(nullptr); ios_base::sync_with_stdio(false);
ll i,j;
ll N,M,L;
cin >> N >> M >> L;
if(L==0){
cout << "? " << N << 1 << endl;
cout.flush();
ll a;
cin >> a;
cout << "! " << a << endl;
cout.flush();
}else{
ll x=N;
for(i=1;i<=L;i++){
cout << "? " << x << M << endl;
cout.flush();
ll a;
cin >> a;
x=a;
}
cout << "! " << x << endl;
cout.flush();
}
return 0;
}