結果
問題 | No.851 テストケース |
ユーザー |
![]() |
提出日時 | 2020-01-27 03:57:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-09-14 11:42:49 |
合計ジャッジ時間 | 1,696 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 2 |
コンパイルメッセージ
Main.py:7: SyntaxWarning: invalid escape sequence '\d' res = re.match("^\d*$",s)
ソースコード
import itertools import math import re input() s = input() res = re.match("^\d*$",s) if (not res): print("assert") else: a = (int(s),int(input()),int(input())) b = itertools.combinations(a,2) l = [] for x in b: l.append(sum(x)) if (len(l) == 1): print("assert") else: l2 = list(set(l)) l2.sort() l2.reverse() print(l2[1])