結果

問題 No.1041 直線大学
コンテスト
ユーザー splash9494
提出日時 2020-05-02 00:49:54
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 279 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 128 ms
コンパイル使用メモリ 85,120 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2026-05-31 12:12:03
合計ジャッジ時間 2,783 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys

input = sys.stdin.readline

N = int(input())

ps = []
for _ in range(N):
    ps.append(tuple(map(int, input().split())))

cnt = 2

for p in ps[2:]:
    if (ps[1][1] - ps[0][1])*(ps[1][0] - p[0]) == (ps[1][1] - p[1])*(ps[1][0] - ps[0][0]):
        cnt += 1
print(cnt)
0