結果

問題 No.1291 小手調べ
ユーザー 1white_princess1white_princess
提出日時 2022-02-19 01:08:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 633 bytes
コンパイル時間 1,482 ms
コンパイル使用メモリ 163,512 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-11 20:25:12
合計ジャッジ時間 2,031 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: 関数 ‘LL my_pow(LL, LL)’ 内:
main.cpp:17:1: 警告: 制御が非 void 関数の終りに到達しました [-Wreturn-type]
   17 | }
      | ^

ソースコード

diff #

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
#include<deque>
#define rep(i,a,b) for(LL i = a;i<b; i++)
#define rrep(i,a,b) for(LL i = a;i>b; i--)
#define tobirep(i,a,b,c) for(LL i = a;i<b; i+=c)
#define tobirrep(i,a,b,c) for(LL i = a;i>b; i-=c)
#define INF  2000000000
#define ooki 9,223,372,036,854,775,807
#define tii -9,223,372,036,854,775,808
typedef long long LL;
LL my_pow(LL a,LL b){
  if(b==0){return 1;}
  if(b%2==0){a=a*a; return my_pow(a,b/2);}
  if(b%2==1){return a*my_pow(a,b-1);}
}
int main(){
  LL n;
  cin >> n;
  rep(i,0,n){
    LL d;
    cin >> d;
    cout << my_pow(10,d-1) * 9 << endl;
  }
}

0