結果

問題 No.1041 直線大学
ユーザー iet461_kyoproiet461_kyopro
提出日時 2020-05-01 21:35:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 397 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 76,232 KB
最終ジャッジ日時 2023-08-26 07:14:52
合計ジャッジ時間 4,872 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,288 KB
testcase_01 AC 71 ms
71,504 KB
testcase_02 AC 71 ms
71,508 KB
testcase_03 AC 72 ms
71,412 KB
testcase_04 AC 72 ms
71,420 KB
testcase_05 AC 71 ms
71,348 KB
testcase_06 AC 71 ms
71,296 KB
testcase_07 AC 80 ms
76,060 KB
testcase_08 AC 83 ms
76,148 KB
testcase_09 AC 81 ms
76,196 KB
testcase_10 AC 88 ms
76,132 KB
testcase_11 AC 88 ms
76,100 KB
testcase_12 AC 85 ms
75,852 KB
testcase_13 AC 80 ms
76,060 KB
testcase_14 AC 86 ms
76,052 KB
testcase_15 AC 83 ms
76,056 KB
testcase_16 AC 84 ms
75,868 KB
testcase_17 AC 78 ms
75,968 KB
testcase_18 AC 86 ms
76,196 KB
testcase_19 AC 84 ms
76,144 KB
testcase_20 AC 74 ms
71,356 KB
testcase_21 AC 83 ms
76,152 KB
testcase_22 AC 74 ms
71,388 KB
testcase_23 AC 88 ms
75,868 KB
testcase_24 AC 88 ms
76,068 KB
testcase_25 AC 85 ms
76,232 KB
testcase_26 AC 79 ms
75,984 KB
testcase_27 AC 83 ms
76,068 KB
testcase_28 AC 73 ms
71,348 KB
testcase_29 AC 72 ms
71,376 KB
testcase_30 AC 71 ms
71,324 KB
testcase_31 AC 71 ms
71,584 KB
testcase_32 AC 71 ms
71,260 KB
testcase_33 AC 71 ms
71,364 KB
testcase_34 AC 71 ms
71,572 KB
testcase_35 AC 72 ms
71,360 KB
testcase_36 AC 73 ms
71,292 KB
testcase_37 AC 70 ms
71,252 KB
testcase_38 AC 90 ms
76,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 = xy[i][0]-xy[j][0], 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)
0