結果

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

テストケース

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

ソースコード

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