結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-03 00:24:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,434 ms / 2,000 ms
コード長 68 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 11,920 KB
実行使用メモリ 16,156 KB
最終ジャッジ日時 2023-10-22 02:07:41
合計ジャッジ時間 5,414 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
16,156 KB
testcase_01 AC 115 ms
16,156 KB
testcase_02 AC 105 ms
16,156 KB
testcase_03 AC 167 ms
16,152 KB
testcase_04 AC 72 ms
16,060 KB
testcase_05 AC 74 ms
16,060 KB
testcase_06 AC 73 ms
16,060 KB
testcase_07 AC 73 ms
16,060 KB
testcase_08 AC 77 ms
16,060 KB
testcase_09 AC 135 ms
16,156 KB
testcase_10 AC 1,434 ms
16,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

1.upto(a=gets.to_i){|i|i.upto(b=a-i){|j|b-j<j||puts([i,j,b-j]*" ")}}
0