結果

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

テストケース

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

ソースコード

diff #

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

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

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

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

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

for t in range(T):
    print(Y[t]+X[t])
0