結果

問題 No.1041 直線大学
ユーザー iet461_kyoproiet461_kyopro
提出日時 2020-05-01 21:33:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 936 ms
コンパイル使用メモリ 86,748 KB
実行使用メモリ 76,144 KB
最終ジャッジ日時 2023-08-26 07:08:19
合計ジャッジ時間 5,579 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,408 KB
testcase_01 AC 72 ms
71,276 KB
testcase_02 AC 73 ms
71,328 KB
testcase_03 AC 73 ms
71,364 KB
testcase_04 AC 74 ms
71,408 KB
testcase_05 AC 71 ms
71,100 KB
testcase_06 AC 71 ms
71,208 KB
testcase_07 AC 102 ms
75,780 KB
testcase_08 AC 83 ms
75,992 KB
testcase_09 AC 82 ms
75,912 KB
testcase_10 AC 87 ms
75,912 KB
testcase_11 AC 87 ms
75,852 KB
testcase_12 AC 86 ms
75,980 KB
testcase_13 AC 82 ms
75,780 KB
testcase_14 WA -
testcase_15 AC 84 ms
75,852 KB
testcase_16 AC 86 ms
75,784 KB
testcase_17 AC 77 ms
75,860 KB
testcase_18 AC 88 ms
75,860 KB
testcase_19 AC 86 ms
75,956 KB
testcase_20 AC 71 ms
71,156 KB
testcase_21 AC 83 ms
75,992 KB
testcase_22 AC 71 ms
71,436 KB
testcase_23 AC 90 ms
75,876 KB
testcase_24 AC 87 ms
75,804 KB
testcase_25 AC 87 ms
75,916 KB
testcase_26 AC 78 ms
75,904 KB
testcase_27 AC 84 ms
75,936 KB
testcase_28 AC 72 ms
71,256 KB
testcase_29 AC 70 ms
71,160 KB
testcase_30 AC 72 ms
71,228 KB
testcase_31 WA -
testcase_32 AC 71 ms
71,260 KB
testcase_33 AC 71 ms
71,308 KB
testcase_34 AC 72 ms
71,324 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

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