結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2020-11-23 07:06:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 687 ms |
コンパイル使用メモリ | 56,544 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 17:19:25 |
合計ジャッジ時間 | 1,220 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; ++i) { int d; cin >> d; string result; if (d == 1) { result = "10"; } else { result.push_back('9'); result.append(string(d - 1, '0')); } cout << result << endl; } return 0; }