結果
問題 | No.791 うし数列 |
ユーザー | ssmkzk |
提出日時 | 2019-03-18 23:44:52 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 169 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 10,524 KB |
実行使用メモリ | 7,940 KB |
最終ジャッジ日時 | 2023-09-26 13:53:37 |
合計ジャッジ時間 | 1,340 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 16 ms
7,812 KB |
testcase_02 | AC | 15 ms
7,764 KB |
testcase_03 | AC | 16 ms
7,756 KB |
testcase_04 | RE | - |
testcase_05 | AC | 15 ms
7,772 KB |
testcase_06 | AC | 15 ms
7,864 KB |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | AC | 15 ms
7,772 KB |
testcase_10 | AC | 15 ms
7,896 KB |
testcase_11 | AC | 15 ms
7,840 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
ソースコード
S = input() if S[0] != "1": print(-1) else: l = list(S[1:]) s = set(l) if len(s) == 1 and s[0] == "3": print(len(l)) else: print(-1)