結果

問題 No.964 2020
コンテスト
ユーザー KKT89
提出日時 2020-01-14 01:15:26
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,020 ms
+ 808µs
コード長 353 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 542 ms
コンパイル使用メモリ 109,352 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2026-10-25 05:06:44
合計ジャッジ時間 2,073 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <math.h>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n; cin >> n;
	if(n==1){
		cout << 1 << endl;
		return 0;
	}
	for(int i=n-1;i>=0;i--){
		for(int j=0;j<n;j++){
			cout << i;
		}
	}
	cout << endl;
}
0