結果

問題 No.2246 1333-like Number
ユーザー 👑 colognecologne
提出日時 2023-03-21 13:24:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 288 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 11,748 KB
実行使用メモリ 10,100 KB
最終ジャッジ日時 2023-10-18 18:23:32
合計ジャッジ時間 5,107 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,020 KB
testcase_01 AC 28 ms
10,020 KB
testcase_02 AC 29 ms
10,020 KB
testcase_03 AC 28 ms
10,020 KB
testcase_04 AC 288 ms
10,100 KB
testcase_05 AC 195 ms
10,072 KB
testcase_06 AC 220 ms
10,080 KB
testcase_07 AC 238 ms
10,084 KB
testcase_08 AC 100 ms
10,044 KB
testcase_09 AC 200 ms
10,072 KB
testcase_10 AC 95 ms
10,036 KB
testcase_11 AC 185 ms
10,068 KB
testcase_12 AC 48 ms
10,024 KB
testcase_13 AC 77 ms
10,032 KB
testcase_14 AC 114 ms
10,048 KB
testcase_15 AC 111 ms
10,048 KB
testcase_16 AC 159 ms
10,064 KB
testcase_17 AC 238 ms
10,084 KB
testcase_18 AC 72 ms
10,032 KB
testcase_19 AC 90 ms
10,036 KB
testcase_20 AC 274 ms
10,096 KB
testcase_21 AC 217 ms
10,080 KB
testcase_22 AC 170 ms
10,064 KB
testcase_23 AC 285 ms
10,096 KB
testcase_24 AC 265 ms
10,092 KB
testcase_25 AC 29 ms
10,024 KB
testcase_26 AC 287 ms
10,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools


def g():
    for d in itertools.count(1):
        for a in range(1, 10):
            for b in range(a+1, 10):
                yield (a, b, d)


def main():
    N = int(input())
    x = g()
    for i in range(N-1):
        next(x)
    a, b, d = next(x)
    print(str(a)+str(b)*d)


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