結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2024-12-09 12:29:31 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 4,778 ms |
| コンパイル使用メモリ | 70,416 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-09 12:29:38 |
| 合計ジャッジ時間 | 6,010 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
import math,
sequtils,
strutils,
tables
let
n = parseInt stdin.readLine
a = n.newSeqWith stdin.readLine
cntTable = a.toCountTable
max = cntTable.largest.`[]` 1
echo:
if max <= n.ceilDiv(2): "YES"
else: "NO"
kou_kkk