結果
| 問題 |
No.1291 小手調べ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-12 08:37:52 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 2,881 ms |
| コンパイル使用メモリ | 276,816 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-07-12 08:37:56 |
| 合計ジャッジ時間 | 3,585 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int N;
cin >> N;
while(N--) {
int d;
cin >> d;
if(d==1) {
cout << 10 << endl;
} else {
string ans = string(d-1, '0');
ans.insert(ans.begin(), '9');
cout << ans << endl;
}
}
}