提出 #374576


ソースコード 拡げる

m = dict()
s = input()
v = 1
for c in s:
    if c == '*' or c == '+':
        continue
    if c not in m:
        m[c] = v
        v <<= 1

mem = [0] * 20000
for i in range(2**len(m)):
    val = dict()
    for c in m:
        x = m[c]
        if i & x:
            val[c] = 1
        else:
            val[c] = -1
    mem[eval(s, val) + 10000] += 1
for i in mem:
    if i:
        print(i)
        exit(0)
print(0)

提出情報

提出日時
問題 L - セミ時雨ハッシュ
ユーザ probako
言語 Python (3.4.2)
得点 0
コード長 440 Byte
結果 TLE
実行時間 3042 ms
メモリ 7052 KiB

ジャッジ結果

セット名 Subtask All
得点 / 配点 0 / 30 0 / 270
結果
AC × 6
TLE × 6
AC × 12
TLE × 38
セット名 テストケース
Subtask subtask_00.txt, subtask_01.txt, subtask_02.txt, subtask_03.txt, subtask_04.txt, subtask_05.txt, subtask_06.txt, subtask_07.txt, subtask_08.txt, subtask_09.txt, subtask_10.txt, subtask_11.txt
All scrambled_00.txt, scrambled_01.txt, scrambled_02.txt, scrambled_03.txt, scrambled_04.txt, scrambled_05.txt, scrambled_06.txt, scrambled_07.txt, scrambled_08.txt, scrambled_09.txt, scrambled_10.txt, scrambled_11.txt, scrambled_12.txt, scrambled_13.txt, scrambled_14.txt, scrambled_15.txt, scrambled_16.txt, scrambled_17.txt, scrambled_18.txt, scrambled_19.txt, scrambled_20.txt, scrambled_21.txt, scrambled_22.txt, scrambled_23.txt, scrambled_24.txt, scrambled_25.txt, scrambled_26.txt, scrambled_27.txt, scrambled_28.txt, scrambled_29.txt, scrambled_30.txt, scrambled_31.txt, scrambled_32.txt, scrambled_33.txt, scrambled_34.txt, scrambled_35.txt, scrambled_36.txt, scrambled_37.txt, subtask_00.txt, subtask_01.txt, subtask_02.txt, subtask_03.txt, subtask_04.txt, subtask_05.txt, subtask_06.txt, subtask_07.txt, subtask_08.txt, subtask_09.txt, subtask_10.txt, subtask_11.txt
ケース名 結果 実行時間 メモリ
scrambled_00.txt AC 197 ms 6884 KiB
scrambled_01.txt AC 94 ms 6884 KiB
scrambled_02.txt TLE 3033 ms 7008 KiB
scrambled_03.txt TLE 3035 ms 6956 KiB
scrambled_04.txt TLE 3038 ms 7040 KiB
scrambled_05.txt TLE 3033 ms 7012 KiB
scrambled_06.txt TLE 3034 ms 7008 KiB
scrambled_07.txt TLE 3034 ms 6876 KiB
scrambled_08.txt TLE 3035 ms 7004 KiB
scrambled_09.txt TLE 3033 ms 7012 KiB
scrambled_10.txt TLE 3034 ms 7012 KiB
scrambled_11.txt TLE 3033 ms 6972 KiB
scrambled_12.txt TLE 3034 ms 7008 KiB
scrambled_13.txt TLE 3034 ms 7012 KiB
scrambled_14.txt TLE 3039 ms 7012 KiB
scrambled_15.txt TLE 3034 ms 7008 KiB
scrambled_16.txt TLE 3033 ms 7008 KiB
scrambled_17.txt TLE 3039 ms 7012 KiB
scrambled_18.txt TLE 3034 ms 7008 KiB
scrambled_19.txt TLE 3034 ms 7016 KiB
scrambled_20.txt TLE 3033 ms 7012 KiB
scrambled_21.txt TLE 3034 ms 7008 KiB
scrambled_22.txt AC 316 ms 6884 KiB
scrambled_23.txt AC 582 ms 6996 KiB
scrambled_24.txt AC 1103 ms 6884 KiB
scrambled_25.txt AC 2356 ms 6884 KiB
scrambled_26.txt TLE 3034 ms 7008 KiB
scrambled_27.txt TLE 3039 ms 6980 KiB
scrambled_28.txt TLE 3034 ms 7012 KiB
scrambled_29.txt TLE 3033 ms 7012 KiB
scrambled_30.txt TLE 3032 ms 7008 KiB
scrambled_31.txt TLE 3036 ms 6992 KiB
scrambled_32.txt TLE 3034 ms 7012 KiB
scrambled_33.txt TLE 3034 ms 7008 KiB
scrambled_34.txt TLE 3033 ms 7012 KiB
scrambled_35.txt TLE 3034 ms 7012 KiB
scrambled_36.txt TLE 3034 ms 7012 KiB
scrambled_37.txt TLE 3042 ms 7012 KiB
subtask_00.txt AC 93 ms 6884 KiB
subtask_01.txt AC 95 ms 6884 KiB
subtask_02.txt AC 326 ms 6884 KiB
subtask_03.txt AC 598 ms 6884 KiB
subtask_04.txt AC 1134 ms 6884 KiB
subtask_05.txt AC 2418 ms 7008 KiB
subtask_06.txt TLE 3033 ms 7008 KiB
subtask_07.txt TLE 3033 ms 6992 KiB
subtask_08.txt TLE 3034 ms 7052 KiB
subtask_09.txt TLE 3033 ms 7008 KiB
subtask_10.txt TLE 3033 ms 7012 KiB
subtask_11.txt TLE 3035 ms 6884 KiB