結果

問題 No.687 E869120 and Constructing Array 1
ユーザー jiro8719jiro8719
提出日時 2018-06-18 17:29:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 116 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,312 KB
最終ジャッジ日時 2023-09-13 06:49:39
合計ジャッジ時間 1,735 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

input = gets.to_i
for a in 1..10
    b = input - a
    if b <= 10
        puts "#{a} #{b}"
        break
    end
end
0