結果

問題 No.791 うし数列
ユーザー _matumo_
提出日時 2019-03-12 18:47:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-23 15:48:02
合計ジャッジ時間 1,285 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = s.count('3')
print(str(n) if len(s)==n+1 and s[0]=='1' and n>0 else '-1')
0