結果

問題 No.1041 直線大学
ユーザー matriematrie
提出日時 2020-12-15 02:04:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 10,900 KB
最終ジャッジ日時 2023-10-20 05:36:10
合計ジャッジ時間 9,257 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,080 KB
testcase_01 AC 27 ms
10,080 KB
testcase_02 AC 25 ms
10,080 KB
testcase_03 AC 26 ms
10,080 KB
testcase_04 AC 28 ms
10,080 KB
testcase_05 AC 26 ms
10,080 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1,325 ms
10,900 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 359 ms
10,576 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 31 ms
10,108 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 29 ms
10,080 KB
testcase_21 AC 110 ms
10,324 KB
testcase_22 AC 27 ms
10,080 KB
testcase_23 WA -
testcase_24 AC 319 ms
10,540 KB
testcase_25 WA -
testcase_26 AC 35 ms
10,128 KB
testcase_27 AC 58 ms
10,212 KB
testcase_28 AC 28 ms
10,080 KB
testcase_29 AC 28 ms
10,080 KB
testcase_30 AC 29 ms
10,080 KB
testcase_31 AC 29 ms
10,080 KB
testcase_32 AC 29 ms
10,080 KB
testcase_33 AC 29 ms
10,080 KB
testcase_34 AC 29 ms
10,080 KB
testcase_35 AC 29 ms
10,080 KB
testcase_36 AC 29 ms
10,080 KB
testcase_37 AC 28 ms
10,080 KB
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=[list(map(int,input().split())) for _ in range(n)]
s=[0,0]*n*(n//2)
z=0
for i in range(n):
	for j in range(i):
		if i==j: continue
		#print(i,j,l[i],l[j])
		a=(l[i][1]-l[j][1])/max((l[i][0]-l[j][0]),0.01)
		b=l[i][1]-l[i][0]/max(a,0.01)
		s[i*i+j]=[a,b]
s=[x for x in s if x!=0]
for x in s:
	z=max(z,s.count(x))
print(z+1)
0