結果

問題 No.232 めぐるはめぐる (2)
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-01-24 12:29:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 556 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 10,248 KB
最終ジャッジ日時 2023-10-21 13:56:06
合計ジャッジ時間 3,629 ms
ジャッジサーバーID
(参考情報)
judge9 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
10,248 KB
testcase_01 WA -
testcase_02 AC 86 ms
10,248 KB
testcase_03 WA -
testcase_04 AC 30 ms
10,172 KB
testcase_05 AC 29 ms
10,172 KB
testcase_06 AC 29 ms
10,172 KB
testcase_07 AC 30 ms
10,172 KB
testcase_08 AC 71 ms
10,244 KB
testcase_09 AC 29 ms
10,172 KB
testcase_10 AC 29 ms
10,172 KB
testcase_11 WA -
testcase_12 AC 29 ms
10,172 KB
testcase_13 AC 30 ms
10,172 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 30 ms
10,184 KB
testcase_19 WA -
testcase_20 AC 28 ms
10,172 KB
testcase_21 WA -
testcase_22 AC 29 ms
10,172 KB
testcase_23 AC 30 ms
10,172 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T, A, B = map(int, input().split())
first_arrive = max(A, B)
rem = T - first_arrive
if rem <= 1:
    print('NO')
else:
    print('YES')
    diag = min(A, B)
    for _ in range(diag):
        print('^>')
        
    if A > B:
        for _ in range(first_arrive - diag):
            print('^')
    else:
        for _ in range(first_arrive - diag):
            print('>')
    
    if rem >= 3 and rem % 2 != 0:
        print('>')
        print('^')
        print('<v')
        rem -= 3
    
    for _ in range(rem//2):
        print('>')
        print('<')
0