結果
| 問題 | No.964 2020 | 
| コンテスト | |
| ユーザー |  forest3 | 
| 提出日時 | 2020-03-11 14:54:57 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,020 ms | 
| コード長 | 273 bytes | 
| コンパイル時間 | 1,560 ms | 
| コンパイル使用メモリ | 166,876 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-16 00:12:14 | 
| 合計ジャッジ時間 | 2,186 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 8 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int N;
	cin >> N;
	string s;
	for( int i = 1; i <= min( N, 9 ); i++ ) {
		s += (char)(i + '0');
	}
	if( N >= 10 ) s += '0';
	string ans;
	for( int i = 0; i < N; i++ ) {
		ans += s;
	}
	cout << ans << endl;
}
            
            
            
        