結果

問題 No.2794 I Love EDPC-T
ユーザー ecottea
提出日時 2024-05-26 15:32:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-20 21:25:10
合計ジャッジ時間 2,623 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 13 RE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
import sys

content = input()
pattern = r'^(\d+)$'
result = re.match(pattern, content)

if not result:
    sys.exit("format error.")

N = int(content)

if not (2 <= N and N <= 10**5):
     sys.exit("N")


content = input()
pattern = r'^([<>]{' + str(N-1) + r'})$'
print(pattern)
result = re.match(pattern, content)

if not result:
    sys.exit("format error.")

print("OK")
0