結果
| 問題 |
No.232 めぐるはめぐる (2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-16 19:10:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,110 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 76,476 KB |
| 最終ジャッジ日時 | 2024-07-03 18:38:38 |
| 合計ジャッジ時間 | 4,102 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 13 |
ソースコード
t, a, b = map(int, input().split())
if a > t or b > t:
print("NO")
exit()
print("YES")
aa = t - (t - a) % 2
bb = t - (t - b) % 2
ca, cb = 0, 0
if aa < t and bb < t:
for i in range(t):
if i == 0:
print('^')
ca += 1
elif i == t - 1:
if cb < b:
print('>')
else:
print('<')
cb += 1
else:
res = ''
if ca <= a:
res += '^'
else:
res += 'v'
if cb <= b:
res += '>'
else:
res += '<'
print(res)
ca += 1
cb += 1
else:
for i in range(t):
res = ''
if i == 0:
if a == t:
res += '^'
if b == t:
res += '>'
else:
if ca <= a:
res += '^'
else:
res += 'v'
if cb <= b:
res += '>'
else:
res += '<'
print(res)
ca += 1
cb += 1