結果

問題 No.232 めぐるはめぐる (2)
ユーザー mkawa2mkawa2
提出日時 2019-12-25 20:59:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 194 ms / 1,000 ms
コード長 1,021 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 10,948 KB
実行使用メモリ 36,608 KB
最終ジャッジ日時 2023-10-12 13:51:18
合計ジャッジ時間 5,591 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 188 ms
36,584 KB
testcase_01 AC 191 ms
36,608 KB
testcase_02 AC 194 ms
36,432 KB
testcase_03 AC 192 ms
36,500 KB
testcase_04 AC 132 ms
29,656 KB
testcase_05 AC 131 ms
29,628 KB
testcase_06 AC 133 ms
29,688 KB
testcase_07 AC 132 ms
29,652 KB
testcase_08 AC 176 ms
34,264 KB
testcase_09 AC 133 ms
29,628 KB
testcase_10 AC 131 ms
29,524 KB
testcase_11 AC 131 ms
29,712 KB
testcase_12 AC 133 ms
29,716 KB
testcase_13 AC 132 ms
29,580 KB
testcase_14 AC 131 ms
29,728 KB
testcase_15 AC 130 ms
29,652 KB
testcase_16 AC 129 ms
29,712 KB
testcase_17 AC 130 ms
29,640 KB
testcase_18 AC 134 ms
29,656 KB
testcase_19 AC 136 ms
29,764 KB
testcase_20 AC 134 ms
29,612 KB
testcase_21 AC 134 ms
29,656 KB
testcase_22 AC 130 ms
29,716 KB
testcase_23 AC 129 ms
29,620 KB
testcase_24 AC 130 ms
29,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0