結果

問題 No.80 四角形を描こう
ユーザー tanukidontanukidon
提出日時 2018-03-24 21:55:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 97 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 11,196 KB
実行使用メモリ 15,272 KB
最終ジャッジ日時 2023-09-07 08:57:25
合計ジャッジ時間 1,556 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,256 KB
testcase_01 AC 66 ms
15,120 KB
testcase_02 AC 64 ms
15,124 KB
testcase_03 AC 66 ms
15,180 KB
testcase_04 AC 67 ms
15,044 KB
testcase_05 AC 66 ms
15,068 KB
testcase_06 AC 66 ms
15,064 KB
testcase_07 AC 66 ms
15,120 KB
testcase_08 AC 64 ms
15,032 KB
testcase_09 AC 65 ms
15,148 KB
testcase_10 AC 66 ms
15,124 KB
testcase_11 AC 67 ms
15,272 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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