1 条题解

  • 1
    @ 2026-8-7 16:14:19
    #include <iostream>
    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;
    }
    
    
    
    • 1

    【深基2.例10】小鱼的游泳时间

    信息

    ID
    28
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    13
    已通过
    10
    上传者