結果

問題 No.232 めぐるはめぐる (2)
ユーザー syarosyaro
提出日時 2016-01-19 22:32:18
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 171 bytes
コンパイル時間 958 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 26,384 KB
最終ジャッジ日時 2023-10-21 13:15:05
合計ジャッジ時間 9,231 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

(T,A,B=gets.split.map &:to_i
a=(?^*A+"^v"*((a=T-A)/2)+?\0*a%=2).chars
b=(?\0*((b=T-B)%2)+"<>"*(b/2)+?>*B).chars
a.*T+A+B-2
puts [:YES]+a.zip(b).map{|x,y|x+y})rescue$><<:NO
0