結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2020-11-24 14:57:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 1,971 ms |
コンパイル使用メモリ | 192,196 KB |
最終ジャッジ日時 | 2025-01-16 05:23:36 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int n; cin >> n;while(n--) {int d; cin >> d;if(d == 1) {cout << 10 << '\n';} else {string s = "9";--d;while(d--) {s += "0";}cout << s << '\n';}}return 0;}