結果

問題 No.1041 直線大学
ユーザー neterukunneterukun
提出日時 2020-05-01 21:27:09
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 76,432 KB
最終ジャッジ日時 2023-08-26 06:45:36
合計ジャッジ時間 4,205 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,248 KB
testcase_01 AC 60 ms
71,404 KB
testcase_02 AC 63 ms
71,124 KB
testcase_03 AC 63 ms
71,092 KB
testcase_04 AC 62 ms
71,144 KB
testcase_05 AC 61 ms
71,128 KB
testcase_06 AC 63 ms
71,128 KB
testcase_07 AC 71 ms
75,688 KB
testcase_08 AC 74 ms
76,352 KB
testcase_09 AC 73 ms
75,860 KB
testcase_10 AC 77 ms
76,152 KB
testcase_11 AC 78 ms
76,216 KB
testcase_12 AC 74 ms
76,132 KB
testcase_13 AC 71 ms
76,172 KB
testcase_14 AC 74 ms
76,408 KB
testcase_15 AC 70 ms
76,392 KB
testcase_16 AC 73 ms
76,084 KB
testcase_17 AC 67 ms
75,700 KB
testcase_18 AC 75 ms
76,416 KB
testcase_19 AC 75 ms
76,416 KB
testcase_20 AC 63 ms
71,320 KB
testcase_21 AC 72 ms
75,988 KB
testcase_22 AC 62 ms
71,332 KB
testcase_23 AC 75 ms
76,232 KB
testcase_24 AC 75 ms
76,432 KB
testcase_25 AC 74 ms
76,236 KB
testcase_26 AC 70 ms
76,176 KB
testcase_27 AC 73 ms
75,964 KB
testcase_28 AC 62 ms
71,104 KB
testcase_29 AC 65 ms
71,120 KB
testcase_30 AC 63 ms
71,300 KB
testcase_31 AC 62 ms
70,944 KB
testcase_32 AC 62 ms
71,304 KB
testcase_33 AC 61 ms
71,304 KB
testcase_34 AC 62 ms
70,864 KB
testcase_35 AC 59 ms
71,188 KB
testcase_36 AC 62 ms
71,240 KB
testcase_37 AC 62 ms
71,304 KB
testcase_38 AC 80 ms
76,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
info = [list(map(int, input().split())) for i in range(n)]

ans = 0
for i in range(n):
    x1, y1 = info[i]
    for j in range(i + 1, n):
        x2, y2 = info[j]
        tmp = 0
        for k in range(n):
            x, y = info[k]
            if (x2 - x1) * y == (y2 - y1) * x - x1 * y2 + x2 * y1:
                tmp += 1
        ans = max(ans, tmp)
print(ans)
0