結果

問題 No.687 E869120 and Constructing Array 1
ユーザー object1234object1234
提出日時 2019-01-23 00:43:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 81 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,216 KB
最終ジャッジ日時 2023-10-14 09:20:31
合計ジャッジ時間 1,754 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,216 KB
testcase_01 AC 80 ms
15,044 KB
testcase_02 AC 80 ms
15,032 KB
testcase_03 AC 80 ms
15,048 KB
testcase_04 AC 81 ms
15,100 KB
testcase_05 AC 80 ms
15,036 KB
testcase_06 AC 81 ms
14,992 KB
testcase_07 AC 80 ms
15,212 KB
testcase_08 AC 81 ms
15,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
sho = n / 2
zyouyo = n % 2
if zyouyo == 0
    puts "#{sho} #{sho}"
elsif zyouyo == 1
    puts "#{sho} #{n - sho}"
end
0