結果
問題 | No.1291 小手調べ |
ユーザー |
![]() |
提出日時 | 2022-02-19 01:07:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 630 bytes |
コンパイル時間 | 1,387 ms |
コンパイル使用メモリ | 164,992 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-29 10:09:21 |
合計ジャッジ時間 | 2,119 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 4 |
コンパイルメッセージ
main.cpp: In function 'LL my_pow(LL, LL)': main.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] 17 | } | ^
ソースコード
#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 << pow(10,d-1) * 9 << endl; } }