結果

問題 No.791 うし数列
ユーザー hiro1729
提出日時 2023-09-10 20:52:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 53,716 KB
最終ジャッジ日時 2024-06-28 11:58:38
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
if len(s) > 1 and s[0] == '1' and all(i == '3' for i in s[1:]):
	print(len(s) - 1)
else:
	print(-1)
0