結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-24 09:18:24 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 5,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 8,064 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2025-01-02 21:56:05 |
| 合計ジャッジ時間 | 1,927 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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