結果

問題 No.687 E869120 and Constructing Array 1
ユーザー finefine
提出日時 2018-05-18 22:21:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 128 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 11,420 KB
実行使用メモリ 15,224 KB
最終ジャッジ日時 2023-09-10 22:57:05
合計ジャッジ時間 1,899 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,224 KB
testcase_01 AC 82 ms
15,076 KB
testcase_02 AC 81 ms
14,976 KB
testcase_03 AC 81 ms
15,096 KB
testcase_04 AC 82 ms
15,164 KB
testcase_05 AC 80 ms
14,972 KB
testcase_06 AC 80 ms
15,128 KB
testcase_07 AC 81 ms
15,136 KB
testcase_08 AC 82 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
1.upto(10) do |a1|
    a2 = n - a1
    if a2 >= 1 && a2 <= 10
        puts "#{a1} #{a2}"
        break
    end
end
0