結果

問題 No.232 めぐるはめぐる (2)
ユーザー syarosyaro
提出日時 2016-01-19 23:28:11
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 24,724 KB
最終ジャッジ日時 2023-10-21 13:25:14
合計ジャッジ時間 4,913 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 179 ms
24,724 KB
testcase_01 AC 147 ms
24,536 KB
testcase_02 WA -
testcase_03 AC 146 ms
24,536 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 77 ms
16,028 KB
testcase_07 AC 78 ms
16,028 KB
testcase_08 AC 144 ms
21,948 KB
testcase_09 AC 85 ms
16,028 KB
testcase_10 WA -
testcase_11 AC 80 ms
16,028 KB
testcase_12 AC 81 ms
16,028 KB
testcase_13 WA -
testcase_14 AC 77 ms
16,028 KB
testcase_15 AC 78 ms
16,028 KB
testcase_16 AC 83 ms
16,028 KB
testcase_17 WA -
testcase_18 AC 80 ms
16,028 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 80 ms
16,028 KB
testcase_22 WA -
testcase_23 AC 80 ms
16,028 KB
testcase_24 AC 79 ms
16,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=(t,a,b=gets.split.map &:to_i
s=[""]*((s=t-b)%2)+[?<,?>]*(s/2)+[?>]*b
[:YES]+(0...t).map{|i|(i<a ? ?^:i>t-(t-a)%2?"":"^v"[(i-a)%2])+s[i]}
)rescue :NO
puts a
0