結果
問題 |
No.232 めぐるはめぐる (2)
|
ユーザー |
![]() |
提出日時 | 2019-12-25 20:59:54 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,021 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 67,456 KB |
最終ジャッジ日時 | 2024-09-25 11:36:10 |
合計ジャッジ時間 | 6,299 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 22 |
ソースコード
from bisect import * from math import * from collections import * from heapq import * from random import * import numpy as np import sys sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def II(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) def MF(): return map(float, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LF(): return list(map(float, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): n,y,x=MI() if max(x,y)>n or (n,y,x)==(1,0,0): print("NO") exit() ans=[""]*n r=x+(n-x)//2 l=(n-x)//2 u=y+(n-y)//2 d=(n-y)//2 for i in range(r): ans[i]=">" for i in range(r,r+l): ans[i]="<" for i in range(n-1,n-1-u,-1): ans[i]+="^" for i in range(n-1-u,n-1-u-d,-1): ans[i]+="v" print("YES") for s in ans: print(s) main()