結果
| 問題 |
No.3074 Divide Points Fairly
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-29 12:37:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 192 ms / 2,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 363 ms |
| コンパイル使用メモリ | 82,352 KB |
| 実行使用メモリ | 94,312 KB |
| 最終ジャッジ日時 | 2025-03-29 12:37:50 |
| 合計ジャッジ時間 | 9,134 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 |
ソースコード
import random
n = int(input())
xy = [list(map(int, input().split())) for _ in range(2 * n)]
a = random.randrange(10**5)
b = random.randrange(10**5)
C = []
for x, y in xy:
C.append(a * x + b * y)
C.sort()
print(a, b, -C[n] + 1)