結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-07-25 16:09:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 577 bytes |
| コンパイル時間 | 828 ms |
| コンパイル使用メモリ | 92,320 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 07:50:11 |
| 合計ジャッジ時間 | 1,468 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
using namespace std;
int main() {
int N;
cin >> N;
string result;
int start = N;
int end = 1;
if (start == 10) {
start = 9;
end = 0;
}
for (int i = start; i >= end; --i) {
for (int j = 0; j < N; ++j) {
result += to_string(i);
}
}
cout << result << endl;
return 0;
}
f843nmfwisfeuw