結果
問題 | No.1291 小手調べ |
ユーザー |
|
提出日時 | 2023-06-12 14:20:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 1,605 ms |
コンパイル使用メモリ | 166,344 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 16:10:21 |
合計ジャッジ時間 | 1,805 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}}