結果

問題 No.1041 直線大学
ユーザー splash9494splash9494
提出日時 2020-05-02 00:47:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-08-26 18:40:16
合計ジャッジ時間 4,406 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,200 KB
testcase_01 AC 67 ms
71,008 KB
testcase_02 AC 68 ms
71,168 KB
testcase_03 AC 68 ms
71,376 KB
testcase_04 AC 72 ms
71,208 KB
testcase_05 AC 67 ms
71,372 KB
testcase_06 WA -
testcase_07 AC 69 ms
71,164 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 67 ms
71,344 KB
testcase_11 AC 69 ms
71,228 KB
testcase_12 AC 68 ms
71,240 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 67 ms
71,180 KB
testcase_20 AC 68 ms
71,004 KB
testcase_21 WA -
testcase_22 AC 68 ms
71,116 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 66 ms
71,352 KB
testcase_29 AC 67 ms
71,264 KB
testcase_30 AC 68 ms
71,140 KB
testcase_31 AC 68 ms
71,512 KB
testcase_32 AC 67 ms
71,160 KB
testcase_33 AC 67 ms
71,576 KB
testcase_34 AC 67 ms
71,204 KB
testcase_35 AC 68 ms
71,296 KB
testcase_36 AC 68 ms
71,408 KB
testcase_37 AC 67 ms
71,264 KB
testcase_38 AC 70 ms
71,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 abs( (ps[1][1] - ps[0][1])*(ps[1][0] - p[0]) ) == abs( (ps[1][1] - p[1])*(ps[1][0] - ps[0][0]) ):
        cnt += 1
print(cnt)
0