結果

問題 No.1849 Three Times Value
ユーザー lllllll88938494lllllll88938494
提出日時 2023-04-26 07:08:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 60,352 KB
最終ジャッジ日時 2024-04-27 13:29:56
合計ジャッジ時間 2,405 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 36 ms
53,376 KB
testcase_02 AC 35 ms
52,768 KB
testcase_03 AC 36 ms
53,644 KB
testcase_04 AC 35 ms
51,520 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 36 ms
52,292 KB
testcase_08 AC 35 ms
51,904 KB
testcase_09 AC 41 ms
58,376 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 39 ms
57,796 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 37 ms
52,164 KB
testcase_17 AC 37 ms
52,260 KB
testcase_18 WA -
testcase_19 AC 35 ms
52,144 KB
testcase_20 AC 38 ms
52,228 KB
testcase_21 AC 39 ms
52,332 KB
testcase_22 AC 35 ms
52,628 KB
testcase_23 AC 38 ms
52,500 KB
testcase_24 AC 37 ms
52,068 KB
testcase_25 AC 35 ms
52,272 KB
testcase_26 AC 39 ms
58,804 KB
testcase_27 AC 36 ms
52,280 KB
testcase_28 AC 35 ms
52,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
if len(n) < 3:
    print(0)
    exit()
if len(n)%3 != 0:
    print('9'*(len(n)//3))
    exit()
    
n=n[:len(n)//3]

for i in range(1,10**5 + 1):
    if i > int(n):
        break
    ans = i
print(ans)
0