結果
問題 | No.3061 uxs hxixtya pyuyn ixc hyixa kxuyn |
ユーザー | catupper |
提出日時 | 2020-04-01 22:36:29 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 342 ms |
コンパイル使用メモリ | 10,524 KB |
実行使用メモリ | 8,112 KB |
最終ジャッジ日時 | 2023-09-09 19:16:24 |
合計ジャッジ時間 | 1,770 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,972 KB |
testcase_01 | AC | 15 ms
8,032 KB |
testcase_02 | AC | 15 ms
7,932 KB |
testcase_03 | AC | 16 ms
7,936 KB |
testcase_04 | AC | 16 ms
7,892 KB |
testcase_05 | AC | 140 ms
7,960 KB |
testcase_06 | AC | 49 ms
7,888 KB |
testcase_07 | AC | 15 ms
7,948 KB |
testcase_08 | AC | 15 ms
7,980 KB |
testcase_09 | AC | 18 ms
7,960 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 18 ms
8,048 KB |
testcase_13 | RE | - |
testcase_14 | WA | - |
testcase_15 | RE | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 15 ms
7,980 KB |
testcase_20 | AC | 15 ms
7,980 KB |
testcase_21 | AC | 16 ms
8,076 KB |
testcase_22 | AC | 16 ms
7,932 KB |
testcase_23 | WA | - |
ソースコード
def ok(): print("Yes") exit() def ng(): print("NO") exit() x = input() n = len(x) def check(a, b): for c in a + b[1::2]: b = b.replace(c, ' ') return ' ' not in b[::2] for i in range(n): for j in range(i + 3, n): if check(x[:i] + x[j:], x[i:j]):ok() ng()