結果

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

ソースコード

diff #

a = list(input())
b = a.pop(0)
c = set(a)

if b == '1' and len(c) == 1 and c == {'3'}:
    print(len(a))
else:
    print('-1')
0