結果
| 問題 | No.1291 小手調べ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-12 14:20:08 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 446µs | |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 887 ms |
| コンパイル使用メモリ | 180,720 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 14:07:18 |
| 合計ジャッジ時間 | 1,842 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
ll N; cin >> N;
for(int i = 0; i < N; i++) {
int a; cin >> a;
string ans = "9";
if(a ==1) {
cout << 10 << endl;
continue;
}
for(int i = 0; i < a - 1; i++) {
ans += '0';
}
cout << ans << endl;
}
}