結果

問題 No.80 四角形を描こう
ユーザー tanukidontanukidon
提出日時 2018-03-24 21:51:37
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 85 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 11,192 KB
実行使用メモリ 15,440 KB
最終ジャッジ日時 2023-09-07 08:56:26
合計ジャッジ時間 2,708 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,060 KB
testcase_01 AC 85 ms
15,304 KB
testcase_02 AC 81 ms
15,192 KB
testcase_03 RE -
testcase_04 AC 82 ms
15,156 KB
testcase_05 AC 82 ms
15,080 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 83 ms
15,084 KB
testcase_09 AC 85 ms
15,304 KB
testcase_10 WA -
testcase_11 AC 84 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_f
if n < 4
  puts 0
else
  m = n/4
  a = m.floor
  b = m.ceil
end
p a*b

0