結果

問題 No.232 めぐるはめぐる (2)
ユーザー matsu7874matsu7874
提出日時 2015-12-27 18:03:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 12,360 KB
最終ジャッジ日時 2023-10-19 11:17:47
合計ジャッジ時間 4,701 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
12,360 KB
testcase_01 AC 107 ms
11,800 KB
testcase_02 WA -
testcase_03 AC 109 ms
12,224 KB
testcase_04 AC 32 ms
10,020 KB
testcase_05 AC 33 ms
10,020 KB
testcase_06 AC 32 ms
10,020 KB
testcase_07 AC 31 ms
10,020 KB
testcase_08 WA -
testcase_09 AC 32 ms
10,020 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 31 ms
10,020 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 30 ms
10,020 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 33 ms
10,020 KB
testcase_22 WA -
testcase_23 AC 31 ms
10,020 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T, A, B = map(int, input().split())

if T < A or T < B:
    print('NO')
    exit()
cnt = 0

Y = ['^'] * A
X = ['>'] * B

Y.extend(['^', 'v'] * ((T - A) // 2))
if (T - A) % 2 == 1:
    cnt += 1
    Y.append(' ')

if (T - B) % 2 == 1:
    X.append(' ')
    cnt = 1
X.extend(['>', '<'] * ((T - B) // 2))

if cnt >= T:
    print('NO')
    exit()
print('YES')
for t in range(T):
    print(Y[t] + X[t])
0