結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
Co-3
|
| 提出日時 | 2020-09-20 19:40:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-24 10:55:57 |
| 合計ジャッジ時間 | 1,171 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
ls = list(input())
b = len(ls)
if ls[0] != "1":
print(-1)
else:
for i in range(b-1):
if ls[i+1] != "3":
print(-1)
quit()
if b != 1:
print(b-1)
else:
print(-1)
Co-3