結果
問題 | No.216 FAC |
ユーザー |
![]() |
提出日時 | 2023-08-11 22:57:21 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 250 bytes |
コンパイル時間 | 5,258 ms |
コンパイル使用メモリ | 70,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 18:10:25 |
合計ジャッジ時間 | 6,263 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
import sequtils, strutils, tableslet n, aa, bb = stdin.readLine.split.map parseIntvar cnts = initCountTable[int]()for (a, b) in aa.zip bb:if cnts.hasKey b: cnts.inc b, aelse: cnts[b] = aecho ["NO", "YES"][int cnts.largest[1] == cnts[0]]