#include <iostream> #include <cstdlib> #include <cmath> #include <string.h> #include <string> #include <iterator> #include <numeric> #include <algorithm> #include <deque> #include <vector> #include <sstream> using namespace std; int main() { double x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; if(x2-x1==0) { cout<<"INF"<<endl; } else { cout<<(y2-y1)/(x2-x1)<<endl; } return 0; }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:1449 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:422 |
sizeof的大作用 (C语言代码)浏览:1451 |
1013题解浏览:560 |
Hello, world! (C语言代码)浏览:714 |
简单的a+b (C语言代码)浏览:419 |
sizeof的大作用 (C语言代码)浏览:1028 |
局部变量作函数返回值的问题浏览:981 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1479 |
用筛法求之N内的素数。 (C语言代码)浏览:531 |