首页 > 分钟计算
头像 张田懿
发表于 2020-12-08 20:20:04
include using namespace std;int main(){ int a,b,c,d; cin>>a>>b>>c>>d; cout<<(c-a)*60+d-b; return 0;}
头像 已注销
发表于 2021-02-02 13:02:52
#include<stdio.h> int main(){ int a, b, c, d; scanf("%d %d\n%d %d",&a,&b,&c,&d); printf("%d",(c - a)*60 - b +d ); 展开全文
头像 金龙月轩寰语唐舞麟
发表于 2020-12-26 12:30:15
#include<bits/stdc++.h> using namespace std; int main(){ int a1,a2,b1,b2; cin>>a1>>a2; cin>>b1>>b2; int 展开全文
头像 还没xiang好
发表于 2020-05-10 16:42:56
统一将时间转化为分钟 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); 展开全文
头像 何雪莹何雪莹何雪莹
发表于 2021-07-15 17:38:12
include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d; cin>>a>>c; cin>>b>>d; cout<<(b-a)*60+d-c< 展开全文
头像 天元之弈
发表于 2022-01-16 11:23:47
传送门-> https://ac.nowcoder.com/acm/problem/21994 我的博客-> https://blog.nowcoder.net/yanhaoyang2106 题目描述 给你同一天里的两个时间(24小时制),求这两个时间内有多少分钟,保证第一个时间在第二个 展开全文
头像 念北11280923
发表于 2021-10-07 23:02:00
#include<stdio.h> int main() { int h1,m1,h2,m2,a,b; scanf("%d%d",&h1,&m1); scanf("%d%d",&h2,&m2); if(m2<m 展开全文
头像 我的小熊不见了
发表于 2020-10-29 23:27:50
将小时转化分钟即可#include<stdio.h>int main(){ int hour,min; int hour1,min1; int a,b,c; scanf("%d %d/n",&hour,&min); scanf("%d %d/ 展开全文
头像 牛客笑哈哈
发表于 2022-06-18 10:45:34
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = 展开全文
头像 Codecodify
发表于 2023-04-13 23:43:52
#include <iostream> #define Size 2 using namespace std; typedef struct { int hour; // 小时 int minutes; // 分钟 int total; // 总分钟 } Cl 展开全文

等你来战

查看全部