結果
| 問題 | No.2828 Remainder Game | 
| コンテスト | |
| ユーザー |  Tatsu_mr | 
| 提出日時 | 2024-08-03 00:37:07 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 83 ms / 2,000 ms | 
| コード長 | 664 bytes | 
| コンパイル時間 | 1,897 ms | 
| コンパイル使用メモリ | 194,692 KB | 
| 最終ジャッジ日時 | 2025-02-23 20:39:49 | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    int ans = 0;
    for (int i = 0; i < 10; i++) {
        int m = (1 << (i + 1)), k = (1 << i);
        cout << m << " " << k << endl;
        vector<int> r;
        for (int bit = 0; bit < (1 << i); bit++) {
            r.emplace_back((1 << i) | bit);
        }
        for (int i = 0; i < k; i++) {
            if (i < k - 1) {
                cout << r[i] << " ";
            } else {
                cout << r[i] << endl;
            }
        }
        
        int c;
        cin >> c;
        ans += k * c;
    }
    cout << "0 1" << endl << ans << endl;
    return 0;
}
            
            
            
        