結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2020-01-27 03:58:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 3,153 ms |
| コード長 | 414 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-14 11:42:51 |
| 合計ジャッジ時間 | 1,720 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
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])
No