結果

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

テストケース

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

ソースコード

diff #

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

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

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

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

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