結果
問題 | No.1291 小手調べ |
ユーザー |
|
提出日時 | 2020-11-20 22:23:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 1,255 ms |
コンパイル使用メモリ | 73,716 KB |
最終ジャッジ日時 | 2025-01-16 02:34:43 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include<iostream> #include<string> #include<vector> using namespace std; int main(){ int n; cin >> n; vector<string> ans(n,""); for(int i=0;i < n;i++){ int d; cin >> d; if(d == 1) {ans[i] = "10";continue;} else{ ans[i] = "9"; for(int j=1;j < d;j++){ ans[i] += '0'; } } } for(auto x: ans) cout << x << endl; return 0; }