結果
| 問題 | No.1041 直線大学 |
| コンテスト | |
| ユーザー |
iet461_kyopro
|
| 提出日時 | 2020-05-01 21:33:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 63,872 KB |
| 最終ジャッジ日時 | 2026-05-30 16:47:16 |
| 合計ジャッジ時間 | 4,785 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 6 |
ソースコード
n = int(input())
xy = [list(map(int, input().split())) for i in range(n)]
ans = 0
for i in range(n-1):
basex,basey = xy[i][0],xy[i][1]
for j in range(i+1,n):
X,Y = abs(xy[i][0]-xy[j][0]), abs(xy[i][1]-xy[j][1])
tmp = 0
for x,y in xy:
x -= basex
y -= basey
if not (x*Y - y*X):
tmp += 1
ans = max(ans,tmp)
print(ans)
iet461_kyopro