結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
24,724 KB
testcase_01 AC 169 ms
24,536 KB
testcase_02 AC 205 ms
24,724 KB
testcase_03 AC 170 ms
24,536 KB
testcase_04 AC 87 ms
17,608 KB
testcase_05 AC 86 ms
16,028 KB
testcase_06 AC 86 ms
16,028 KB
testcase_07 RE -
testcase_08 AC 146 ms
21,948 KB
testcase_09 RE -
testcase_10 AC 87 ms
16,028 KB
testcase_11 AC 86 ms
16,024 KB
testcase_12 AC 90 ms
16,028 KB
testcase_13 AC 85 ms
16,024 KB
testcase_14 AC 88 ms
16,028 KB
testcase_15 AC 85 ms
16,028 KB
testcase_16 AC 84 ms
16,028 KB
testcase_17 AC 88 ms
16,028 KB
testcase_18 AC 89 ms
16,028 KB
testcase_19 AC 85 ms
16,028 KB
testcase_20 AC 85 ms
16,028 KB
testcase_21 AC 85 ms
16,028 KB
testcase_22 AC 86 ms
16,028 KB
testcase_23 RE -
testcase_24 AC 84 ms
16,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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