結果
| 問題 |
No.2830 Don't Stop the Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-02 21:53:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 891 bytes |
| コンパイル時間 | 770 ms |
| コンパイル使用メモリ | 85,944 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-08-02 21:53:10 |
| 合計ジャッジ時間 | 2,928 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<vector>
#include<cassert>
#include<random>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout<<240<<endl;
for(int i=1;i<=30;i++)cout<<"1\n"<<i<<endl;
vector<int>t;
for(int k=0;k<30;k++)if(998244352>>k&1)t.push_back(k);
assert(t.size()==6);
random_device rng;
for(int i=2;i<=9;i++)cout<<"5\n"<<i<<" "<<rng()%998244352+1<<endl;
cout<<"3\n2 3\n";
cout<<"3\n4 5\n";
cout<<"3\n2 4\n";
cout<<"3\n3 5\n";
cout<<"3\n6 7\n";
cout<<"3\n8 9\n";
cout<<"3\n6 8\n";
cout<<"3\n7 9\n";
cout<<"3\n2 6\n";
cout<<"3\n3 7\n";
cout<<"3\n4 8\n";
cout<<"3\n5 9\n";
for(int i=0;i<t.size();i++)
{
for(int k=0;k<t[i];k++)cout<<"3\n"<<i+2<<" "<<i+2<<endl;
}
cout<<"3\n2 3\n";
cout<<"3\n2 4\n";
cout<<"3\n2 5\n";
cout<<"3\n2 6\n";
cout<<"3\n2 7\n";
cout<<"5\n2 998244352\n";
for(int i=3;i<=30;i++)cout<<"3\n2 "<<i<<endl;
}