結果

問題 No.2828 Remainder Game
ユーザー GOTKAKO
提出日時 2024-08-02 21:54:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 515 bytes
コンパイル時間 1,965 ms
コンパイル使用メモリ 194,188 KB
最終ジャッジ日時 2025-02-23 20:01:55
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int N; cin >> N;
    int answer = 0;
    for(int i=0; i<10; i++){
        int all = 1<<(i+1);
        cout << all << " " << all/2 << endl;
        for(int k=all/2; k<all; k++){
            if(k != all/2) cout << " ";
            cout << k;
        }
        cout << endl;
        int c; cin >> c;
        answer += c*all/2;
    }
   
    cout << "0 1" << endl;
    cout << answer << endl;
}
0