結果

問題 No.1041 直線大学
ユーザー miya145592miya145592
提出日時 2023-05-18 01:20:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 76,684 KB
最終ジャッジ日時 2023-08-22 02:16:10
合計ジャッジ時間 5,717 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,428 KB
testcase_01 AC 71 ms
71,296 KB
testcase_02 AC 73 ms
71,384 KB
testcase_03 AC 73 ms
71,464 KB
testcase_04 AC 68 ms
71,104 KB
testcase_05 AC 70 ms
71,260 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 75 ms
75,992 KB
testcase_11 AC 73 ms
75,908 KB
testcase_12 AC 74 ms
76,152 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 71 ms
71,460 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 69 ms
71,112 KB
testcase_21 WA -
testcase_22 AC 70 ms
71,564 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 70 ms
71,648 KB
testcase_29 AC 70 ms
71,376 KB
testcase_30 AC 69 ms
71,380 KB
testcase_31 AC 69 ms
71,680 KB
testcase_32 AC 68 ms
71,396 KB
testcase_33 AC 68 ms
71,148 KB
testcase_34 AC 67 ms
71,508 KB
testcase_35 AC 70 ms
71,080 KB
testcase_36 AC 69 ms
71,472 KB
testcase_37 AC 69 ms
71,328 KB
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
XY = [list(map(int, input().split())) for _ in range(N)]
INF = 10**9
cnt = 0
for i in range(N):
    a, b = XY[i]
    K = set()
    for j in range(N):
        if i==j:
            continue
        c, d = XY[j]
        if c-a!=0:
            k = (d-b)/(c-a)
            K.add(k)
        else:
            K.add(INF)
    cnt = max(cnt, N-len(K)+1)
print(cnt)
0