結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
![]() |
提出日時 | 2019-10-26 21:03:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 421 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-14 18:00:30 |
合計ジャッジ時間 | 1,577 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
import sys sys.setrecursionlimit(10 ** 6) def main(): ss = [] ss.append(input()) ss.append(input()) cnt = [[0] * 26 for _ in range(2)] for i, s in enumerate(ss): for c in s: cnt[i][ord(c) - ord("a")] += 1 if cnt[0] == cnt[1]: print("YES") else: print("NO") main()