結果

問題 No.1041 直線大学
ユーザー matriematrie
提出日時 2020-12-15 01:53:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 11,868 KB
実行使用メモリ 10,900 KB
最終ジャッジ日時 2023-10-20 05:35:30
合計ジャッジ時間 8,069 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,088 KB
testcase_01 WA -
testcase_02 AC 30 ms
10,088 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 AC 1,372 ms
10,900 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 AC 64 ms
10,236 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 95 ms
10,308 KB
testcase_19 AC 247 ms
10,496 KB
testcase_20 AC 28 ms
10,088 KB
testcase_21 RE -
testcase_22 AC 28 ms
10,088 KB
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 WA -
testcase_27 AC 57 ms
10,224 KB
testcase_28 AC 29 ms
10,088 KB
testcase_29 AC 30 ms
10,088 KB
testcase_30 AC 28 ms
10,088 KB
testcase_31 AC 28 ms
10,088 KB
testcase_32 AC 29 ms
10,088 KB
testcase_33 AC 28 ms
10,088 KB
testcase_34 AC 28 ms
10,088 KB
testcase_35 AC 28 ms
10,088 KB
testcase_36 AC 28 ms
10,088 KB
testcase_37 AC 29 ms
10,088 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])/(l[i][0]-l[j][0]+0.01)+0.01
		b=l[i][1]-l[i][0]/a
		s[i*n+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