結果
問題 | No.791 うし数列 |
ユーザー |
![]() |
提出日時 | 2020-07-24 16:40:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-25 13:06:35 |
合計ジャッジ時間 | 1,466 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
import sysS=list(input())c=len(S)if S==["1"]:print(-1)sys.exit()if S[0]=="1" and S.count("1")==1 and S.count("3")==c-1:print(c-1)else:print(-1)