結果
| 問題 | No.80 四角形を描こう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-24 09:18:24 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 5,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2026-06-06 08:00:01 |
| 合計ジャッジ時間 | 4,099 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
コンパイルメッセージ
Syntax OK
ソースコード
class Yukicoder
def initialize
@d = gets.to_i
end
def run
two_side_total = @d >> 1
x = two_side_total >> 1
return x * (two_side_total - x)
end
end
puts Yukicoder.new.run