結果
問題 | No.2357 Guess the Function |
ユーザー |
👑 |
提出日時 | 2023-12-05 23:35:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 789 ms |
コンパイル使用メモリ | 66,048 KB |
最終ジャッジ日時 | 2025-02-18 07:58:10 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 10 |
ソースコード
#include <iostream>using namespace std;int main(){cout << "? 100" << endl;int x;cin>>x;if(x == 99){cout << "! " << 99 << " " << 100 << endl;}else{cout << "? " << 100-(x+1) << endl;int y;cin>>y;int B = y+1;int A = (x+y+-99+B*100)%B;cout << "! " << A << " " << B << endl;}}