結果
問題 | No.1041 直線大学 |
ユーザー |
![]() |
提出日時 | 2020-05-02 01:04:58 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 450 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 65,152 KB |
最終ジャッジ日時 | 2024-12-25 20:16:19 |
合計ジャッジ時間 | 5,190 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 37 |
ソースコード
import sys input = sys.stdin.buffer.readline N = int(input()) ps = { tuple(map(int, input().split())) for _ in range(N) } 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)