結果

問題 No.476 正しくない平均
コンテスト
ユーザー keiden
提出日時 2024-09-16 19:53:32
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 18 ms / 2,000 ms
+ 66µs
コード長 243 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 27 ms
コンパイル使用メモリ 6,272 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2026-08-29 01:43:04
合計ジャッジ時間 2,324 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(define yuki476
  (let*
    (
      (n (read))
      (a (read))
      (_ (read-line))
      (s (apply + (map string->number (string-split (read-line) #\space))))
      (ans (if (equal? a (/ s n)) "YES\n" "NO\n"))
    )
    (display ans)
  )
)
0