結果
| 問題 | No.791 うし数列 |
| コンテスト | |
| ユーザー |
Ytz_Ichi
|
| 提出日時 | 2019-06-25 10:39:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-22 23:36:50 |
| 合計ジャッジ時間 | 1,316 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 8 WA * 7 |
ソースコード
import sys
s=list(input())
if not s[0]==1:
print(-1)
else:
for i in range(1,len(s)):
if not s[i]==3:
print(-1)
sys.exit()
print((len(s)-1))
Ytz_Ichi