#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语言代码)浏览:1240 |
汽水瓶 (C语言代码)浏览:598 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:581 |
printf基础练习2 (C语言代码)浏览:567 |
C语言训练-求函数值 (C语言代码)浏览:931 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:540 |
Pascal三角 (C语言代码)格式错误浏览:519 |
计算质因子 (C++代码)浏览:1623 |
输出正反三角形 (C语言代码)浏览:784 |
校门外的树 (C语言代码)浏览:957 |