結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,128 KB
testcase_01 AC 81 ms
15,080 KB
testcase_02 AC 80 ms
15,132 KB
testcase_03 AC 81 ms
15,212 KB
testcase_04 AC 80 ms
15,064 KB
testcase_05 AC 82 ms
15,292 KB
testcase_06 AC 81 ms
14,996 KB
testcase_07 AC 81 ms
15,040 KB
testcase_08 AC 80 ms
15,252 KB
testcase_09 AC 79 ms
15,184 KB
testcase_10 WA -
testcase_11 AC 83 ms
15,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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