結果
| 問題 |
No.2828 Remainder Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-02 21:29:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 2,000 ms |
| コード長 | 433 bytes |
| コンパイル時間 | 704 ms |
| コンパイル使用メモリ | 71,504 KB |
| 実行使用メモリ | 25,208 KB |
| 平均クエリ数 | 22.00 |
| 最終ジャッジ日時 | 2024-08-02 21:30:03 |
| 合計ジャッジ時間 | 3,841 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<vector>
#include<cassert>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
int ans=0;
for(int k=0;k<10;k++)
{
vector<int>r;
for(int i=1<<k;i<1<<k+1;i++)r.push_back(i);
cout<<(1<<k+1)<<" "<<r.size()<<"\n";
for(int i=0;i<r.size();i++)cout<<r[i]<<(i+1==r.size()?"":" ");
cout<<endl;
int c;cin>>c;
ans+=c<<k;
}
cout<<"0 1\n"<<ans<<endl;
}