不用if,c++,AC!!!

P1425 小鱼的游泳时间

不用if很正常啊 ```cpp #include<iostream> using namespace std; int a,b,c,d,e,f; int main() { cin>>a>>b>>c>>d; e=c-a; f=d-b; if (f<0) { e=e-1; f=d+60-b; } cout<<e<<" "<<f<<endl; return 0; } ```
by cloud1 @ 2017-10-28 11:28:38


老兄,你这程序明明用if了
by 6QWQ6 @ 2017-11-07 20:30:07


@[碧柠](/space/show?uid=65631)
by 6QWQ6 @ 2017-11-07 20:30:19


owo抱歉
by cloud1 @ 2017-11-10 19:38:44


@ wqy050503
by cloud1 @ 2017-11-10 19:40:09


```cpp #include <iostream> using namespace std; int a,b,d,f,g; int main() { cin >> a >> b >> d >> f; g=d*60+f-a*60-b; cout << g/60 << " " <<g%60 << endl; return 0; } 0. ```
by cloud1 @ 2017-11-10 19:45:52


然而我表十分抱歉
by cloud1 @ 2017-11-10 19:47:58


@[wqy050503](/space/show?uid=36372)
by cloud1 @ 2017-11-10 19:48:31


呵呵
by 6QWQ6 @ 2017-11-12 21:44:30


|