結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー cielciel
提出日時 2017-06-03 16:16:42
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,438 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 11,960 KB
実行使用メモリ 16,228 KB
最終ジャッジ日時 2023-10-22 03:00:22
合計ジャッジ時間 4,589 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
16,228 KB
testcase_01 AC 118 ms
16,228 KB
testcase_02 AC 105 ms
16,228 KB
testcase_03 AC 164 ms
16,228 KB
testcase_04 AC 75 ms
16,124 KB
testcase_05 AC 75 ms
16,124 KB
testcase_06 AC 76 ms
16,124 KB
testcase_07 AC 72 ms
16,124 KB
testcase_08 AC 80 ms
16,124 KB
testcase_09 AC 142 ms
16,228 KB
testcase_10 AC 1,438 ms
16,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i-3
0.upto(n){|a|a.upto(n-a){|b|c=n-a-b;b<=c&&(puts [a+1,b+1,c+1]*' ')}}
0