結果

問題 No.80 四角形を描こう
ユーザー DialBird
提出日時 2017-02-24 09:16:26
言語 Ruby
(3.4.1)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 8,192 KB
実行使用メモリ 13,056 KB
最終ジャッジ日時 2025-01-02 21:55:40
合計ジャッジ時間 1,884 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

class Yukicoder
  def initialize
    @d = gets.to_i
  end

  def run
    two_side_total = @d / 2
    x = two_side_total / 2
    y = two_side_total - x
    return x * y
  end
end

puts Yukicoder.new.run
0