結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2020-11-20 22:11:36 |
言語 | C++17 (gcc 11.2.0 + boost 1.78.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 1,577 ms |
使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2023-02-23 18:28:24 |
合計ジャッジ時間 | 2,341 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,196 KB |
testcase_01 | AC | 2 ms
6,248 KB |
testcase_02 | AC | 2 ms
6,272 KB |
testcase_03 | AC | 2 ms
6,192 KB |
testcase_04 | AC | 2 ms
6,184 KB |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; rep(i,n){ int m; cin>>m; if(m==1){ cout<<10<<endl; continue; } cout<<9; rep(j,m-1) cout<<0; cout<<endl; } return 0; }