結果
問題 | No.2828 Remainder Game |
ユーザー |
|
提出日時 | 2024-08-02 22:43:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 609 bytes |
コンパイル時間 | 2,065 ms |
コンパイル使用メモリ | 196,796 KB |
最終ジャッジ日時 | 2025-02-23 20:14:07 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll=long long;constexpr int MOD=998244353;#define rep(i,n) for(int i=0;i<(int)(n);i++)#define rep2(i,l,r) for(int i=(l);i<(int)(r);i++)int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int N;cin>>N;int S=0;for(int i=0;i<10;i++){vector t(0,0);for(int j=(1<<i);j<(1<<(i+1));j++){t.push_back(j);}cout<<(1<<(i+1))<<' '<<t.size()<<'\n';for(int j=0;j<(int)t.size();j++){if(j)cout<<' ';cout<<t[j];}cout<<endl;int s;cin>>s;S+=s*(1<<i);}cout<<"0 1\n"<<S<<endl;}