結果

問題 No.360 増加門松列
ユーザー hogeover30hogeover30
提出日時 2017-02-07 01:49:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 102 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 15,404 KB
最終ジャッジ日時 2023-08-25 18:41:38
合計ジャッジ時間 2,997 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
15,336 KB
testcase_01 AC 89 ms
15,356 KB
testcase_02 AC 83 ms
15,168 KB
testcase_03 AC 79 ms
15,296 KB
testcase_04 AC 87 ms
15,376 KB
testcase_05 AC 88 ms
15,236 KB
testcase_06 AC 88 ms
15,368 KB
testcase_07 AC 90 ms
15,216 KB
testcase_08 AC 88 ms
15,356 KB
testcase_09 AC 88 ms
15,108 KB
testcase_10 AC 81 ms
15,228 KB
testcase_11 AC 77 ms
15,212 KB
testcase_12 AC 87 ms
15,316 KB
testcase_13 AC 81 ms
15,288 KB
testcase_14 AC 79 ms
15,100 KB
testcase_15 AC 88 ms
15,396 KB
testcase_16 AC 79 ms
15,076 KB
testcase_17 AC 80 ms
15,240 KB
testcase_18 AC 89 ms
15,364 KB
testcase_19 AC 89 ms
15,404 KB
testcase_20 AC 89 ms
15,096 KB
testcase_21 AC 87 ms
15,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

$/=' ';puts$<.map(&:to_i).permutation.any?{|e|e.each_cons(3).all?{|a,b,c|a<c&&0<(b-a)*b-=c}}?:YES: :NO
0