結果

問題 No.1041 直線大学
ユーザー w0mbatw0mbat
提出日時 2020-05-01 21:30:07
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 76,704 KB
最終ジャッジ日時 2023-08-26 06:52:15
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,304 KB
testcase_01 AC 71 ms
71,580 KB
testcase_02 AC 72 ms
71,392 KB
testcase_03 AC 72 ms
71,300 KB
testcase_04 AC 72 ms
71,644 KB
testcase_05 AC 73 ms
71,304 KB
testcase_06 AC 73 ms
71,392 KB
testcase_07 AC 82 ms
76,704 KB
testcase_08 AC 80 ms
76,160 KB
testcase_09 AC 79 ms
76,388 KB
testcase_10 AC 89 ms
76,600 KB
testcase_11 AC 90 ms
76,352 KB
testcase_12 AC 87 ms
76,268 KB
testcase_13 AC 83 ms
76,504 KB
testcase_14 AC 89 ms
76,668 KB
testcase_15 AC 80 ms
76,608 KB
testcase_16 AC 84 ms
76,552 KB
testcase_17 AC 78 ms
76,016 KB
testcase_18 AC 82 ms
76,612 KB
testcase_19 AC 84 ms
76,556 KB
testcase_20 AC 73 ms
71,492 KB
testcase_21 AC 83 ms
76,260 KB
testcase_22 AC 72 ms
71,432 KB
testcase_23 AC 87 ms
76,588 KB
testcase_24 AC 86 ms
76,664 KB
testcase_25 AC 81 ms
76,676 KB
testcase_26 AC 78 ms
76,652 KB
testcase_27 AC 80 ms
76,516 KB
testcase_28 AC 73 ms
71,296 KB
testcase_29 AC 73 ms
71,520 KB
testcase_30 AC 73 ms
71,292 KB
testcase_31 AC 73 ms
71,516 KB
testcase_32 AC 73 ms
71,408 KB
testcase_33 AC 72 ms
71,532 KB
testcase_34 AC 72 ms
71,296 KB
testcase_35 AC 72 ms
71,364 KB
testcase_36 AC 72 ms
71,452 KB
testcase_37 AC 72 ms
71,132 KB
testcase_38 AC 94 ms
76,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[tuple(map(int, input().split())) for _ in range(N)]
ans=1
for i in range(N):
    for j in range(i+1,N):
        tmp=2
        for k in range(j+1,N):
            if (A[i][0]-A[j][0])*(A[i][1]-A[k][1])==(A[i][1]-A[j][1])*(A[i][0]-A[k][0]):
                tmp+=1
        ans = max(ans, tmp)
print(ans)
0