結果

問題 No.1291 小手調べ
ユーザー shishimaiotoshishishimaiotoshi
提出日時 2021-08-20 22:57:51
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 1,916 ms
コンパイル使用メモリ 165,580 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 06:40:15
合計ジャッジ時間 2,423 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,376 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
#define rep(i, n, o) for(int i = o;i < (n);i++)
#define ou(x) cout << x << endl
#define ll long long
#define re return 0

int main(){
    int n;
    cin >> n;
    std::vector<int> d(n);
    rep(i, n, 0) cin >> d[i];
    rep(i, n, 0){
        string s = to_string(pow(10, (d[i] - 1)) * 9);
        cout << s.erase(d[i], 7) << endl;
    }
    re;
}
0