結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
oz4point5
|
| 提出日時 | 2019-03-30 02:04:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 260 bytes |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-07 02:39:39 |
| 合計ジャッジ時間 | 1,843 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 1 |
ソースコード
# -*- coding: utf-8 -*-
n = list(str(int(input())))
ans = 0
if n[0] == "1":
for i in range(1,len(n)):
if n[i] == "3":
ans += 1
else:
print("-1")
break
else:
print(ans)
else:
print("-1")
oz4point5