結果
問題 | No.2794 I Love EDPC-T |
ユーザー |
|
提出日時 | 2024-05-27 21:38:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 481 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-12-20 21:32:07 |
合計ジャッジ時間 | 2,720 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 31 |
ソースコード
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 <= 2*10**5): sys.exit("N") content = input() pattern = r'^([<>]{' + str(N-1) + r'})$' result = re.match(pattern, content) if not result: sys.exit("format error.") print("OK")