結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
toyuzuko
|
| 提出日時 | 2020-05-18 17:32:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-01 21:58:37 |
| 合計ジャッジ時間 | 1,125 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 1 |
ソースコード
N = input()
if N[0] != '1':
print(-1)
else:
res = 0
for i in range(1, len(N)):
if N[i] == '3':
res += 1
else:
print(-1)
break
else:
print(res)
toyuzuko