結果

問題 No.687 E869120 and Constructing Array 1
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-11-01 10:10:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 75 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,264 KB
最終ジャッジ日時 2023-10-13 00:37:16
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,264 KB
testcase_01 AC 79 ms
15,148 KB
testcase_02 AC 79 ms
15,028 KB
testcase_03 AC 80 ms
15,028 KB
testcase_04 AC 78 ms
15,204 KB
testcase_05 AC 78 ms
15,184 KB
testcase_06 AC 79 ms
15,128 KB
testcase_07 AC 80 ms
15,004 KB
testcase_08 AC 79 ms
15,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
puts (1 .. 10).find{|a| N - a <= 10 }.then{|a| "#{a} #{N-a}"}
0