結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2020-12-02 20:08:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 1,775 ms |
コンパイル使用メモリ | 166,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 10:40:53 |
合計ジャッジ時間 | 2,222 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; for( int i = 0; i < N; i++ ) { int d; cin >> d; string ans = "9"; for( int j = 0; j < d - 1; j++ ) ans += "0"; if( d == 1 ) ans = "10"; cout << ans << endl; } }