結果

問題 No.116 門松列(1)
ユーザー gemmarogemmaro
提出日時 2019-08-27 18:29:24
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 107 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-28 06:01:32
合計ジャッジ時間 3,133 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 100 ms
12,032 KB
testcase_02 AC 93 ms
12,032 KB
testcase_03 AC 93 ms
12,032 KB
testcase_04 AC 89 ms
12,032 KB
testcase_05 AC 92 ms
12,032 KB
testcase_06 AC 90 ms
12,160 KB
testcase_07 AC 89 ms
12,288 KB
testcase_08 AC 90 ms
12,032 KB
testcase_09 AC 97 ms
12,032 KB
testcase_10 AC 90 ms
12,032 KB
testcase_11 AC 88 ms
12,288 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 89 ms
12,160 KB
testcase_17 AC 88 ms
12,032 KB
testcase_18 WA -
testcase_19 AC 90 ms
12,160 KB
testcase_20 WA -
testcase_21 AC 91 ms
12,032 KB
testcase_22 AC 90 ms
12,032 KB
testcase_23 AC 89 ms
12,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
h=gets.split
c=0
(h.size-2).times{|i|x,y,z=h[i,3]
c+=(x<z&&z<y||y<z&&z<x||z<x&&x<y||y<x&&x<z)?1:0}
p c
0