結果

問題 No.2700 Please Hack Greedy Solution!
ユーザー Theresa Apocalypse
提出日時 2024-03-29 23:08:23
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 1 ms / 500 ms
コード長 880 bytes
コンパイル時間 2,695 ms
コンパイル使用メモリ 275,720 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-06 11:37:34
合計ジャッジ時間 3,193 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
プレゼンテーションモードにする

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
using LL = long long;
using LD = long double;
using PII = pair<int,int>;
using PLL = pair<LL,LL>;
const LL M = 1e9 + 7;
mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());
int main(){
ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
int T = 1;
// cin>>T;
while(T--){
int n = 1000;
vector<int> a(n+1);
a[0] = 1;
a[1] = 100000;
a[2] = 100002;
for(int i=3;i<=n;i++){
a[i] = a[i-1] + a[1] + 1;
}
cout<<n+1<<" "<<n<<endl;
cout<<1<<" "<<1<<endl;
for(int i=1;i<=n;i++){
cout<<a[i]<<" "<<i<<endl;
}
vector<int> dp(n+1);
if(0) yes: cout<<"YES"<<endl;
if(0) no: cout<<"NO"<<endl;
}
}
/*
3 5
4 19
2 8
3 12
1 10
1 1
2 12
3 23
4 34
5 45
6 56
*/
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0