結果

問題 No.1849 Three Times Value
ユーザー kept1994kept1994
提出日時 2022-04-24 01:42:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 76,224 KB
最終ジャッジ日時 2023-09-07 17:03:03
合計ジャッジ時間 4,777 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
76,156 KB
testcase_01 AC 82 ms
76,060 KB
testcase_02 AC 83 ms
75,856 KB
testcase_03 AC 82 ms
75,916 KB
testcase_04 AC 83 ms
75,748 KB
testcase_05 AC 82 ms
75,984 KB
testcase_06 AC 84 ms
76,224 KB
testcase_07 AC 84 ms
76,160 KB
testcase_08 AC 85 ms
76,020 KB
testcase_09 AC 84 ms
75,888 KB
testcase_10 AC 83 ms
76,080 KB
testcase_11 AC 84 ms
76,032 KB
testcase_12 AC 83 ms
76,028 KB
testcase_13 AC 84 ms
76,172 KB
testcase_14 AC 84 ms
76,060 KB
testcase_15 AC 83 ms
75,856 KB
testcase_16 AC 82 ms
75,980 KB
testcase_17 AC 84 ms
76,028 KB
testcase_18 AC 81 ms
75,936 KB
testcase_19 AC 82 ms
76,180 KB
testcase_20 AC 82 ms
75,856 KB
testcase_21 AC 83 ms
76,104 KB
testcase_22 AC 84 ms
76,140 KB
testcase_23 AC 82 ms
75,924 KB
testcase_24 AC 83 ms
76,216 KB
testcase_25 AC 82 ms
76,032 KB
testcase_26 AC 85 ms
76,160 KB
testcase_27 AC 84 ms
76,032 KB
testcase_28 AC 85 ms
76,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    ans = 0
    N = int(input())
    for i in range(1, 10 ** 5 + 1):
        if int(str(i) * 3) <= N:
            ans += 1
    print(ans)
    return


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