結果

問題 No.991 N×Mマス計算(構築)
ユーザー %20
提出日時 2020-02-05 04:18:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 1,766 ms
コンパイル使用メモリ 193,420 KB
最終ジャッジ日時 2025-01-08 22:16:41
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

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