結果
問題 |
No.1041 直線大学
|
ユーザー |
![]() |
提出日時 | 2020-05-01 21:33:21 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 63,360 KB |
最終ジャッジ日時 | 2024-12-24 22:27:11 |
合計ジャッジ時間 | 3,506 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)