結果

問題 No.476 正しくない平均
ユーザー keiden
提出日時 2024-09-16 19:53:32
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-09-16 19:53:36
合計ジャッジ時間 1,769 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

(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