結果
| 問題 |
No.2700 Please Hack Greedy Solution!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-29 23:03:14 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 847 bytes |
| コンパイル時間 | 2,676 ms |
| コンパイル使用メモリ | 274,892 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2025-01-06 11:37:24 |
| 合計ジャッジ時間 | 3,265 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#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] = 1000;
a[2] = 1002;
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<<i<<" "<<a[i]<<endl;
}
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
*/