結果
| 問題 |
No.964 2020
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-13 20:21:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,020 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 1,544 ms |
| コンパイル使用メモリ | 167,796 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 15:55:03 |
| 合計ジャッジ時間 | 2,183 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n;
cin >> n;
string ans = "";
for (int i = 9; i >= 10 - n; --i) {
string hoge(n, '0' + i);
ans += hoge;
}
cout << ans << endl;
return 0;
}