結果
問題 | No.1041 直線大学 |
ユーザー | matrie |
提出日時 | 2020-12-15 01:58:06 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 661 ms |
コンパイル使用メモリ | 11,840 KB |
実行使用メモリ | 10,968 KB |
最終ジャッジ日時 | 2023-10-20 05:35:59 |
合計ジャッジ時間 | 8,431 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
10,076 KB |
testcase_01 | AC | 27 ms
10,076 KB |
testcase_02 | AC | 28 ms
10,076 KB |
testcase_03 | AC | 27 ms
10,076 KB |
testcase_04 | AC | 28 ms
10,076 KB |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | WA | - |
testcase_09 | RE | - |
testcase_10 | AC | 1,366 ms
10,896 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | RE | - |
testcase_14 | AC | 365 ms
10,572 KB |
testcase_15 | WA | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | AC | 27 ms
10,076 KB |
testcase_21 | RE | - |
testcase_22 | AC | 28 ms
10,076 KB |
testcase_23 | RE | - |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | AC | 35 ms
10,124 KB |
testcase_27 | AC | 58 ms
10,208 KB |
testcase_28 | AC | 29 ms
10,076 KB |
testcase_29 | AC | 27 ms
10,076 KB |
testcase_30 | AC | 29 ms
10,076 KB |
testcase_31 | AC | 28 ms
10,076 KB |
testcase_32 | AC | 28 ms
10,076 KB |
testcase_33 | AC | 29 ms
10,076 KB |
testcase_34 | AC | 29 ms
10,076 KB |
testcase_35 | AC | 28 ms
10,076 KB |
testcase_36 | AC | 29 ms
10,076 KB |
testcase_37 | AC | 28 ms
10,076 KB |
testcase_38 | WA | - |
ソースコード
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*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)