結果

問題 No.2246 1333-like Number
ユーザー lloyzlloyz
提出日時 2023-03-17 22:33:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 446 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 11,840 KB
実行使用メモリ 10,132 KB
最終ジャッジ日時 2023-10-18 15:28:51
合計ジャッジ時間 1,829 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,060 KB
testcase_01 AC 32 ms
10,060 KB
testcase_02 AC 29 ms
10,060 KB
testcase_03 AC 28 ms
10,060 KB
testcase_04 AC 28 ms
10,132 KB
testcase_05 AC 29 ms
10,104 KB
testcase_06 AC 28 ms
10,112 KB
testcase_07 AC 28 ms
10,116 KB
testcase_08 AC 29 ms
10,076 KB
testcase_09 AC 29 ms
10,104 KB
testcase_10 AC 29 ms
10,076 KB
testcase_11 AC 28 ms
10,100 KB
testcase_12 AC 29 ms
10,060 KB
testcase_13 AC 30 ms
10,064 KB
testcase_14 AC 29 ms
10,080 KB
testcase_15 AC 29 ms
10,080 KB
testcase_16 AC 29 ms
10,096 KB
testcase_17 AC 29 ms
10,116 KB
testcase_18 AC 28 ms
10,060 KB
testcase_19 AC 29 ms
10,076 KB
testcase_20 AC 28 ms
10,128 KB
testcase_21 AC 28 ms
10,112 KB
testcase_22 AC 30 ms
10,096 KB
testcase_23 AC 29 ms
10,128 KB
testcase_24 AC 29 ms
10,124 KB
testcase_25 AC 28 ms
10,060 KB
testcase_26 AC 28 ms
10,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

q, r = divmod(n - 1, 36)
if r <= 7:
    print('1' + str(r + 2) * (q + 1))
elif r <= 14:
    print('2' + str(r - 5) * (q + 1))
elif r <= 20:
    print('3' + str(r - 11) * (q + 1))
elif r <= 25:
    print('4' + str(r - 16) * (q + 1))
elif r <= 29:
    print('5' + str(r - 20) * (q + 1))
elif r <= 32:
    print('6' + str(r - 23) * (q + 1))
elif r <= 34:
    print('7' + str(r - 25) * (q + 1))
else:
    print('8' + '9' * (q + 1))
0