結果
| 問題 |
No.2700 Please Hack Greedy Solution!
|
| コンテスト | |
| ユーザー |
kokosei
|
| 提出日時 | 2024-03-29 21:39:59 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 535 bytes |
| コンパイル時間 | 1,018 ms |
| コンパイル使用メモリ | 100,968 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-06 11:34:59 |
| 合計ジャッジ時間 | 1,346 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
using ll = long long;
int main(void){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N = 1000, W = 1000;
cout << N << " " << W << endl;
cout << 2000 << " " << 1 << endl;
vector<pair<int, int>> a;
int sum = 1;
for(int i = 2;i <= W;i++){
a.push_back({sum, i});
sum += 2001;
}
reverse(a.begin(), a.end());
for(auto [v, w] : a){
cout << v << " " << w << "\n";
}
return 0;
}
kokosei