結果
問題 | No.2737 Compound Word |
ユーザー |
|
提出日時 | 2024-04-20 21:50:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-12 20:05:59 |
合計ジャッジ時間 | 1,871 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
def main():str_list = []a = int(input())for i in range(a):str_list.append(input())check_list = [txt1+txt2 for i, txt1 in enumerate(str_list) for j, txt2 in enumerate(str_list) if i is not j]s = set(check_list)print(len(list(s)))if __name__ == "__main__":main()