結果

問題 No.964 2020
ユーザー はむ吉🐹はむ吉🐹
提出日時 2020-01-13 20:23:57
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 2,020 ms
コード長 254 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-08-23 12:53:11
合計ジャッジ時間 1,123 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,756 KB
testcase_01 AC 16 ms
7,824 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,808 KB
testcase_04 AC 15 ms
7,756 KB
testcase_05 AC 16 ms
7,884 KB
testcase_06 AC 15 ms
7,792 KB
testcase_07 AC 15 ms
7,788 KB
testcase_08 AC 16 ms
7,852 KB
testcase_09 AC 15 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3


def gen_num(n):
    s = ""
    for i in range(1, n + 1):
        j = i % 10
        s += str(j) * n
    return int(s)


def main():
    n = int(input())
    res = gen_num(n)
    print(res)


if __name__ == "__main__":
    main()
0