結果

問題 No.232 めぐるはめぐる (2)
ユーザー titiatitia
提出日時 2022-10-20 01:06:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 16,816 KB
最終ジャッジ日時 2023-09-12 12:08:25
合計ジャッジ時間 3,418 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
16,816 KB
testcase_01 AC 133 ms
16,704 KB
testcase_02 AC 128 ms
16,740 KB
testcase_03 AC 131 ms
16,700 KB
testcase_04 AC 16 ms
8,240 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,844 KB
testcase_07 AC 16 ms
8,092 KB
testcase_08 AC 98 ms
14,252 KB
testcase_09 AC 15 ms
8,064 KB
testcase_10 AC 15 ms
7,828 KB
testcase_11 AC 16 ms
7,812 KB
testcase_12 AC 16 ms
7,824 KB
testcase_13 AC 16 ms
7,796 KB
testcase_14 AC 16 ms
7,736 KB
testcase_15 AC 16 ms
7,692 KB
testcase_16 AC 16 ms
7,808 KB
testcase_17 AC 16 ms
7,788 KB
testcase_18 AC 17 ms
7,768 KB
testcase_19 AC 16 ms
7,752 KB
testcase_20 AC 16 ms
7,896 KB
testcase_21 AC 16 ms
7,764 KB
testcase_22 AC 16 ms
7,760 KB
testcase_23 AC 16 ms
8,056 KB
testcase_24 AC 16 ms
7,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if A>T or B>T:
    print("NO")
    exit()

print("YES")

X=[]

k=T-A

for i in range(A):
    X.append("^")

for i in range(k//2):
    X.append("^")
    X.append("v")

Y=[]

k=T-B

for i in range(B):
    Y.append(">")

for i in range(k//2):
    Y.append(">")
    Y.append("<")

ANS=[""]*T

for i in range(len(X)):
    ANS[i]+=X[i]

for i in range(len(Y)):
    ANS[T-1-i]+=Y[i]

for ans in ANS:
    print(ans)
0