結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
todo_2mariko
|
| 提出日時 | 2019-03-06 23:30:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 124 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-23 14:41:06 |
| 合計ジャッジ時間 | 1,272 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 5 |
ソースコード
a = list(input())
b = [i for i in a if i == '1' or i == '3']
if len(a) != len(b):
print('-1')
else:
print(len(a)-1)
todo_2mariko