結果
| 問題 | No.2828 Remainder Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-10 13:19:24 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 999 ms |
| コンパイル使用メモリ | 213,540 KB |
| 実行使用メモリ | 16,512 KB |
| 平均クエリ数 | 22.00 |
| 最終ジャッジ日時 | 2026-07-05 11:28:48 |
| 合計ジャッジ時間 | 3,647 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int N, ans = 0;
cin >> N;
for(int i = 0; i < 10; i++){
int r = 1 << i, res;
cout << 2 * r << ' ' << r << '\n';
for(int j = 0; j < r; j++){
if(j) cout << ' ';
cout << j;
}
cout << endl;
cin >> res;
ans += (5 - res) << i;
}
cout << "0 1\n" << ans << endl;
}