牛客425970533号
牛客425970533号
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
牛客425970533号的博客
全部文章
(共5篇)
题解 | #获得月份天数#
#include<stdio.h> int main() { int year = 0; int month = 0; int days[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int day = 0; while (sca...
C
2022-05-13
0
216
题解 | #字符逆序#
">void my_reverse(char* str) { char* left = str; char* right = str+strlen(str)-1; while (left <= right) { char ret = *left;...
C
2022-05-13
0
260
题解 | #三角形判断#
#include<stdio.h> int main() { int a=0; int b=0; int c=0; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { if((a+b>c)&&(a+c>b)&a...
C
2022-05-12
0
255
题解 | #两个整数二进制位不同个数#
#include<stdio.h> int main() { int year = 0; int month = 0; int days[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int day = 0; while (sca...
C
2022-05-12
0
243
题解 | #两个整数二进制位不同个数#
//输入例子 : //1999 2299 //输出例子 : 7 #include<stdio.h> //法一: int main() { //3,5 //00000000000000000000000000000011 //00000000000000000000...
C
2022-05-12
0
330