提出 #52327708


ソースコード 拡げる

list_a = list(input())
myDict={}
for i in range(len(list_a)):
  if list_a[i] in myDict:
    myDict[list_a[i]] +=1
  else:
    myDict[list_a[i]] =1
preprenum = -1
prenum = -1
TF = 'Yes'
numbers = list(myDict.values())
numbers.sort()
for number in numbers:
  if number == preprenum:
    TF = 'No'
    break
  elif number !=prenum & prenum != preprenum:
    TF = 'No'
    break
  else:
    preprenum = prenum
    prenum = number
    continue
if numbers[-1] != numbers[-2]:
  TF='No'
print(TF)

提出情報

提出日時
問題 B - Commencement
ユーザ irohasu11
言語 Python (CPython 3.11.4)
得点 0
コード長 514 Byte
結果 RE
実行時間 10 ms
メモリ 8648 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 200
結果
AC × 3
AC × 15
RE × 2
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 9 ms 8648 KiB
00_sample_02.txt AC 9 ms 8540 KiB
00_sample_03.txt AC 9 ms 8560 KiB
01_random_01.txt AC 9 ms 8456 KiB
01_random_02.txt AC 9 ms 8528 KiB
01_random_03.txt AC 9 ms 8416 KiB
01_random_04.txt AC 9 ms 8476 KiB
01_random_05.txt AC 9 ms 8424 KiB
01_random_06.txt AC 9 ms 8444 KiB
01_random_07.txt AC 9 ms 8460 KiB
01_random_08.txt AC 9 ms 8544 KiB
01_random_09.txt AC 10 ms 8476 KiB
01_random_10.txt AC 9 ms 8528 KiB
02_handmade_01.txt RE 10 ms 8552 KiB
02_handmade_02.txt AC 9 ms 8464 KiB
02_handmade_03.txt AC 9 ms 8548 KiB
02_handmade_04.txt RE 9 ms 8528 KiB