4 条题解
- 1
信息
- ID
- 509
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- 递交数
- 64
- 已通过
- 25
- 上传者
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; int x=c-a,y=d-b; if(y<0){x--;y+=60;} cout<<x<<" "<<y; return 0; }
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; int x=c-a,y=d-b; if(y<0){x--;y+=60;} cout<<x<<" "<<y; return 0; }
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; int x=c-a,y=d-b; if(y<0){x--;y+=60;} cout<<x<<" "<<y; return 0; }