結果

問題 No.1849 Three Times Value
ユーザー McGregorshMcGregorsh
提出日時 2023-05-10 20:56:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 76,880 KB
最終ジャッジ日時 2023-08-17 23:46:32
合計ジャッジ時間 7,069 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 165 ms
76,736 KB
testcase_01 AC 165 ms
76,768 KB
testcase_02 AC 161 ms
76,860 KB
testcase_03 AC 160 ms
76,512 KB
testcase_04 AC 162 ms
76,736 KB
testcase_05 AC 160 ms
76,740 KB
testcase_06 AC 164 ms
76,820 KB
testcase_07 AC 162 ms
76,784 KB
testcase_08 AC 160 ms
76,508 KB
testcase_09 AC 163 ms
76,772 KB
testcase_10 AC 164 ms
76,792 KB
testcase_11 AC 164 ms
76,788 KB
testcase_12 AC 164 ms
76,724 KB
testcase_13 AC 165 ms
76,416 KB
testcase_14 AC 168 ms
76,592 KB
testcase_15 AC 163 ms
76,672 KB
testcase_16 AC 168 ms
76,724 KB
testcase_17 AC 165 ms
76,668 KB
testcase_18 AC 162 ms
76,672 KB
testcase_19 AC 161 ms
76,680 KB
testcase_20 AC 160 ms
76,520 KB
testcase_21 AC 160 ms
76,712 KB
testcase_22 AC 162 ms
76,880 KB
testcase_23 AC 162 ms
76,720 KB
testcase_24 AC 159 ms
76,680 KB
testcase_25 AC 161 ms
76,584 KB
testcase_26 AC 166 ms
76,748 KB
testcase_27 AC 167 ms
76,568 KB
testcase_28 AC 161 ms
76,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
   
   N = int(input())
   
   ans = 0
   for i in range(1, 1050000):
   	  mozi = str(i) * 3
   	  if int(mozi) <= N:
   	  	  ans += 1
   print(ans)
   
if __name__ == '__main__':
    main()
    
0