- 博客(3)
- 收藏
- 关注
原创 浙大拼课A 刷题过程
1.#include<stdio.h>int main(){int t1, t2; scanf("%d %d", &t1, &t2); int a = t1 / 100 * 60 + t1 % 100; int b = a + t2; printf("%03d\n", b / 60 * 100 + b % 60); return 0;}2.#include <stdio.h>int check(i...
2021-12-09 22:53:31
312
原创 中M2021秋C、Java入门练习第I段——26
#include<stdio.h>int gcd(int a,int b){ return (b ? gcd(b,a % b) :a);}int main(){ int a,b; scanf("%d %d",&a,&b); int g = gcd(a,b); int lcm = a*b/gcd(a,b); printf("%d"" ""%d",g,lcm); return 0;}...
2021-11-09 19:35:29
426
原创 输出日期是该年中的第几天(代码分享)- -我感觉自己的代码是最牛逼的
输入在一行中按照格式“yyyy/mm/dd”(即“年/月/日”)给出日期。注意:闰年的判别条件是该年年份能被4整除但不能被100整除、或者能被400整除。闰年的2月有29天。在一行输出日期是该年中的第几天。nclude <stdio.h>int check(int y,int m,int d,int days) { if(m < 1 || m > 12 || d < 1 || d > 31)return 0; int month[13] = {0...
2021-11-04 16:26:42
421
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人