結果
| 問題 | No.3788 Floor Sum Queries |
| コンテスト | |
| ユーザー |
DeltaStruct
|
| 提出日時 | 2026-11-05 02:05:11 |
| 言語 | C++23(gnu拡張) (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 2,264 ms |
| コンパイル使用メモリ | 336,300 KB |
| 実行使用メモリ | 9,784 KB |
| 平均クエリ数 | 6.00 |
| 最終ジャッジ日時 | 2026-11-06 21:13:09 |
| 合計ジャッジ時間 | 5,825 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int q; cin >> q;
auto query = [](int x,int y) -> long long {
long long ret = 0;
cout << '?' << ' ' << x << ' ' << y << endl;
cin >> ret;
return ret;
};
while(q--){
long long a = query(1e6,0),b = query(1e6,1e6);
cout << (2*b-1)/(b-a) << endl;
}
}
DeltaStruct