結果
問題 | No.2715 Unique Chimatagram |
ユーザー | june19312 |
提出日時 | 2024-04-05 21:30:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 578 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 82,212 KB |
実行使用メモリ | 63,744 KB |
最終ジャッジ日時 | 2024-10-01 01:44:14 |
合計ジャッジ時間 | 4,541 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
53,164 KB |
testcase_01 | AC | 35 ms
52,952 KB |
testcase_02 | AC | 36 ms
52,764 KB |
testcase_03 | WA | - |
testcase_04 | AC | 37 ms
53,136 KB |
testcase_05 | AC | 37 ms
53,240 KB |
testcase_06 | AC | 39 ms
52,260 KB |
testcase_07 | AC | 38 ms
52,276 KB |
testcase_08 | AC | 49 ms
62,948 KB |
testcase_09 | WA | - |
testcase_10 | AC | 51 ms
63,192 KB |
testcase_11 | AC | 50 ms
62,080 KB |
testcase_12 | AC | 52 ms
62,344 KB |
testcase_13 | AC | 51 ms
62,692 KB |
testcase_14 | AC | 52 ms
62,368 KB |
testcase_15 | AC | 49 ms
61,396 KB |
testcase_16 | AC | 50 ms
62,024 KB |
testcase_17 | AC | 49 ms
63,112 KB |
testcase_18 | AC | 50 ms
63,492 KB |
testcase_19 | AC | 50 ms
63,744 KB |
testcase_20 | AC | 47 ms
62,756 KB |
testcase_21 | AC | 51 ms
62,904 KB |
testcase_22 | AC | 47 ms
62,620 KB |
testcase_23 | AC | 49 ms
62,368 KB |
testcase_24 | AC | 48 ms
63,556 KB |
testcase_25 | AC | 51 ms
63,408 KB |
testcase_26 | AC | 49 ms
61,848 KB |
testcase_27 | AC | 50 ms
62,492 KB |
testcase_28 | AC | 49 ms
61,736 KB |
testcase_29 | AC | 47 ms
61,944 KB |
testcase_30 | AC | 48 ms
62,136 KB |
testcase_31 | AC | 48 ms
61,208 KB |
testcase_32 | AC | 50 ms
63,032 KB |
testcase_33 | AC | 35 ms
52,968 KB |
testcase_34 | AC | 35 ms
53,760 KB |
testcase_35 | AC | 36 ms
52,868 KB |
testcase_36 | AC | 37 ms
52,420 KB |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | AC | 50 ms
61,968 KB |
testcase_42 | AC | 49 ms
62,316 KB |
ソースコード
N = int(input()) dic = {} for i in range(N): S = list(input()) S.sort() nex = "".join(S) if nex in dic: dic[nex] += 1 else: dic[nex] = 1 #print(dic) abc = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] for ind,val in dic.items(): if val == 1: nex2 = list(ind) for j in abc: nex3 = nex2 + [j] nex3.sort() nex4 = "".join(nex3) if nex4 not in dic: print(nex4) exit() print(-1)