Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
340147 黄浙峰老师 【C5-7】时钟旋转(2) C++ 通过 100 2 MS 248 KB 289 2025-08-12 16:39:13

Tests(2/2):


//615 - 【C5-7】时钟旋转(2) #include<bits/stdc++.h> using namespace std; int main(){ int h1,m1,h2,m2,t1,t2,m; double h; scanf("%d:%d",&h1,&m1); scanf("%d:%d",&h2,&m2); t1=h1*60+m1; t2=h2*60+m2; m=t2-t1; h=1.0*m/60*(360/12); printf("%.1f",h); return 0; }


测评信息: