結果

問題 No.1291 小手調べ
ユーザー keisuke6
提出日時 2022-08-15 23:08:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 1,935 ms
コンパイル使用メモリ 191,808 KB
最終ジャッジ日時 2025-01-30 22:59:02
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N;
  cin>>N;
  for(int i=0;i<N;i++){
      int n;
      cin>>n;
      if(n == 1){
          cout<<10<<endl;
          continue;
      }
      for(int j=0;j<n;j++) cout<<(j == 0)*9;
      cout<<endl;
  }
}
0