結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2016-04-20 20:59:33 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 3,462 ms |
コンパイル使用メモリ | 68,992 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 13:37:25 |
合計ジャッジ時間 | 4,545 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
import strutils, tables let n = stdin.readLine.parseInt var dict = initCountTable[string](16) for _ in 1..n: dict.inc(stdin.readLine, 2) if dict.largest.val - (n and 1) <= n : echo ("YES") else: echo ("NO")