結果
| 問題 | No.80 四角形を描こう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 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
ソースコード
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