結果
問題 | No.2700 Please Hack Greedy Solution! |
ユーザー | GOTKAKO |
提出日時 | 2024-03-29 22:20:22 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 3 ms / 500 ms |
コード長 | 315 bytes |
コンパイル時間 | 2,225 ms |
コンパイル使用メモリ | 200,748 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-03-29 22:20:25 |
合計ジャッジ時間 | 2,739 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n = 1000; int N = n,W = n; cout << N << " " << W << endl; int v = 10000; cout << v << " 1" << endl; for(int i=W; i>=2; i--) cout << v*i-(W-i+1) << " " << i << endl; }