結果
問題 | No.1291 小手調べ |
ユーザー |
|
提出日時 | 2020-11-20 21:23:39 |
言語 | C++14 (gcc 11.2.0 + boost 1.78.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 672 bytes |
コンパイル時間 | 500 ms |
使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2023-02-23 17:49:26 |
合計ジャッジ時間 | 1,213 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,272 KB |
testcase_01 | AC | 2 ms
6,252 KB |
testcase_02 | AC | 2 ms
6,260 KB |
testcase_03 | AC | 1 ms
6,208 KB |
testcase_04 | AC | 1 ms
6,268 KB |
ソースコード
#include <iostream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <map> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector<int> d(N); for(int i = 0; i < N; i++) cin >> d[i]; for(int i = 0; i < N; i++){ if(d[i] == 1){ for(int j = 0; j < d[i] + 1; j++){ if(j == 0) cout << 1; else cout << 0; } cout << endl; continue; } for(int j = 0; j < d[i]; j++){ if(j == 0) cout << 9; else cout << 0; } cout << endl; } }