結果

問題 No.682 Average
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-05-28 12:01:30
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 3,526 ms
コンパイル使用メモリ 65,696 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 07:39:03
合計ジャッジ時間 4,155 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, math, stats
let t = stdin.readLine.split.map(parseInt)
let (A, B) = (t[0], t[1])

var cnt = 0
for i in A .. B:
  let avg = [A, B, i].mean
  if avg == avg.floor:
    cnt += 1

echo cnt
0