結果
| 問題 |
No.232 めぐるはめぐる (2)
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-06-19 01:59:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 1,000 ms |
| コード長 | 560 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 88,192 KB |
| 最終ジャッジ日時 | 2024-06-22 21:49:24 |
| 合計ジャッジ時間 | 2,475 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
T,A,B=map(int,input().split())
if T==1:
if (A,B)==(1,0):
print("YES")
print("^")
elif (A,B)==(0,1):
print("YES")
print(">")
elif (A,B)==(1,1):
print("YES")
print("^>")
else:
print("NO")
exit()
if A>T or B>T:
exit(print("NO"))
X=["^"]*A
while len(X)<T-1:
X.append("v")
X.append("^")
if len(X)==T-1:
X.insert(0,"")
Y=[">"]*B
while len(Y)<T-1:
Y.append("<")
Y.append(">")
if len(Y)==T-1:
Y.insert(1,"")
print("YES")
for x,y in zip(X,Y):
print(x+y)
Kazun