結果

問題 No.991 N×Mマス計算(構築)
ユーザー %20%20
提出日時 2020-02-05 04:18:44
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 2,409 ms
コンパイル使用メモリ 200,996 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 16:45:45
合計ジャッジ時間 6,272 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,348 KB
testcase_01 AC 4 ms
4,348 KB
testcase_02 AC 5 ms
4,348 KB
testcase_03 AC 4 ms
4,348 KB
testcase_04 AC 5 ms
4,348 KB
testcase_05 AC 9 ms
4,348 KB
testcase_06 AC 5 ms
4,348 KB
testcase_07 AC 5 ms
4,348 KB
testcase_08 AC 5 ms
4,348 KB
testcase_09 AC 5 ms
4,348 KB
testcase_10 AC 4 ms
4,348 KB
testcase_11 AC 10 ms
4,348 KB
testcase_12 AC 8 ms
4,348 KB
testcase_13 AC 6 ms
4,348 KB
testcase_14 AC 4 ms
4,348 KB
testcase_15 AC 4 ms
4,348 KB
testcase_16 AC 8 ms
4,348 KB
testcase_17 AC 5 ms
4,348 KB
testcase_18 AC 7 ms
4,348 KB
testcase_19 AC 5 ms
4,348 KB
testcase_20 AC 5 ms
4,348 KB
testcase_21 AC 9 ms
4,348 KB
testcase_22 AC 9 ms
4,348 KB
testcase_23 AC 9 ms
4,348 KB
testcase_24 AC 5 ms
4,348 KB
testcase_25 AC 8 ms
4,348 KB
testcase_26 AC 4 ms
4,348 KB
testcase_27 AC 9 ms
4,348 KB
testcase_28 AC 11 ms
4,348 KB
testcase_29 AC 7 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){cin.tie(0);ios::sync_with_stdio(false);
	int X;cin>>X;
	int N=1e5,M=X/N+1,K=1e9;
	cout<<N<<" "<<M<<" "<<K<<"\n";
	cout<<"* ";
	for(int i=0;i<M-1;++i){
		cout<<K<<" ";
	}
	cout<<"1\n";
	for(int i=0;i<X%N;++i){
		cout<<K<<"\n";
	}
	for(int i=0;i<N-X%N-1;++i){
		cout<<"1\n";
	}
	cout<<(X%K-(N-X%N-1)%K+K)%K<<"\n";
	return 0;
}
0