結果

問題 No.2700 Please Hack Greedy Solution!
ユーザー kotatsugamekotatsugame
提出日時 2024-03-29 21:35:36
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 500 ms
コード長 251 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 63,804 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-03-29 21:35:38
合計ジャッジ時間 1,061 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cassert>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout<<1000<<" "<<1000<<"\n";
	for(int w=1;w<=1000;w++)
	{
		int v=w==1?(int)1e5:(w-1)*((int)1e5+1);
		cout<<v<<" "<<w<<"\n";
	}
}
0