結果

問題 No.1849 Three Times Value
ユーザー ytft
提出日時 2022-03-11 23:08:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-09-16 03:29:59
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 24 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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