結果

問題 No.1849 Three Times Value
ユーザー ytftytft
提出日時 2022-03-11 23:08:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,604 KB
最終ジャッジ日時 2023-10-14 08:23:27
合計ジャッジ時間 4,375 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,368 KB
testcase_01 WA -
testcase_02 AC 73 ms
71,104 KB
testcase_03 AC 73 ms
71,252 KB
testcase_04 AC 78 ms
71,492 KB
testcase_05 AC 73 ms
71,456 KB
testcase_06 AC 74 ms
71,280 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 74 ms
71,188 KB
testcase_10 AC 74 ms
71,176 KB
testcase_11 AC 72 ms
71,416 KB
testcase_12 AC 72 ms
71,256 KB
testcase_13 AC 73 ms
71,396 KB
testcase_14 AC 75 ms
71,284 KB
testcase_15 AC 75 ms
71,416 KB
testcase_16 AC 75 ms
71,604 KB
testcase_17 AC 73 ms
71,600 KB
testcase_18 AC 73 ms
71,468 KB
testcase_19 AC 73 ms
71,464 KB
testcase_20 AC 75 ms
71,400 KB
testcase_21 AC 73 ms
71,424 KB
testcase_22 AC 75 ms
71,384 KB
testcase_23 AC 74 ms
71,384 KB
testcase_24 AC 74 ms
71,388 KB
testcase_25 AC 76 ms
71,300 KB
testcase_26 AC 74 ms
71,392 KB
testcase_27 AC 73 ms
71,472 KB
testcase_28 AC 73 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
N=input()
l=len(N)
if l%3:
	print("9"*(l//3))
else:
	print(int(N[:l//3])-(int(N[:l//3]*3)>int(N)))
0