結果
問題 |
No.2828 Remainder Game
|
ユーザー |
![]() |
提出日時 | 2024-08-03 00:15:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 70 ms / 2,000 ms |
コード長 | 428 bytes |
コンパイル時間 | 702 ms |
コンパイル使用メモリ | 70,732 KB |
実行使用メモリ | 25,452 KB |
平均クエリ数 | 22.00 |
最終ジャッジ日時 | 2024-08-03 00:15:53 |
合計ジャッジ時間 | 3,337 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <vector> using namespace std; int N, res; int main() { ios::sync_with_stdio(false); cin >> N; for (int k = 1; k <= 10; ++k) { vector<int> v; for (int i = 1 << (k - 1); i < 1 << k; ++i) v.push_back(i); cout << (1 << k) << " " << v.size() << endl; for (auto ele : v) cout << ele << " "; cout << endl; int tmp; cin >> tmp; res += tmp << (k - 1); } cout << "0 1\n" << res << endl; }