結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,144 KB
testcase_01 AC 81 ms
15,136 KB
testcase_02 AC 80 ms
15,072 KB
testcase_03 RE -
testcase_04 AC 80 ms
15,288 KB
testcase_05 AC 79 ms
15,140 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 80 ms
15,204 KB
testcase_09 AC 81 ms
15,108 KB
testcase_10 WA -
testcase_11 AC 80 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

0