蓝桥杯基础练习VIP-时间转换(C语言) 摘要:解题思路:利用除法的取正和取余巧妙解决注意事项:参考代码:#include<stdio.h>void main(){ int a,b,c; int n; scanf("%d",&n); a=n/360…… 题解列表 2022年01月06日 0 点赞 0 评论 208 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换 摘要:解题思路:注意事项: 考虑进位参考代码:#include <iostream>using namespace std;int main(){ int n; cin>>n; int h,m,s; …… 题解列表 2022年01月09日 0 点赞 0 评论 455 浏览 评分:0.0
C++时间转换 摘要:```cpp #include using namespace std; int main() { int h,m,s,n; cin>>n; h=n/3600; …… 题解列表 2022年03月23日 0 点赞 0 评论 243 浏览 评分:0.0
C++代码简便 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int H = 0, M = 0, S = 0; int t; c…… 题解列表 2022年03月26日 0 点赞 0 评论 106 浏览 评分:0.0
时间转换【C++】 摘要:```cpp #include using namespace std; int main(){ int t; cin >> t; int shi = t / 3600; …… 题解列表 2022年04月07日 0 点赞 0 评论 273 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换 摘要:解题思路:不就是练一下“/”和“%”嘛!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int t;int main(){ scan…… 题解列表 2022年05月11日 0 点赞 0 评论 187 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换(5行代码) 摘要:解题思路:用好求余可以很快解决这种转换问题注意事项:参考代码:t = int(input())a = t // 3600 # 时b = t % 3600 // 60 # 分c = t % 60 …… 题解列表 2022年08月02日 0 点赞 0 评论 157 浏览 评分:0.0
小南解题--时间转换--92ms 摘要:b=int(input())a=bs=f=m=0s=a//3600f=(a-s*3600)//60m=a-s*3600-f*60print('%d:%d:%d'%(s,f,m))…… 题解列表 2022年08月28日 0 点赞 0 评论 253 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h,m,s; int t; scanf("%d",&t); s=t%60; …… 题解列表 2022年11月29日 0 点赞 0 评论 94 浏览 评分:0.0
吾乃元始天尊!!1470: 蓝桥杯基础练习VIP-时间转换 摘要:```c #include int main() { int t; scanf("%d",&t); int h,m,s; h=t/3600; …… 题解列表 2022年12月14日 0 点赞 0 评论 140 浏览 评分:0.0