屑屑_
屑屑_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
屑屑_的博客
全部文章
(共27篇)
题解 | #字符串最后一个单词的长度#
#include <stdio.h> #include <string.h> #define N 5010 char s[N]; int main() { gets(s); int cnt = 0; for (int i = 0; i <...
2024-03-29
1
178
题解 | #简写单词#
#include <stdio.h> #include <string.h> #define N 5100 char s[N]; char toUpper(char c) { if (c >= 'a' && c <= 'z') ...
2024-03-28
1
205
题解 | #添加逗号#
#include <stdio.h> #include <string.h> #define N 15 char a[N]; char b[N * 2]; int main() { scanf("%s", a); int k = 0...
2024-03-28
1
190
题解 | #班级成绩输入输出#
#include <stdio.h> int main() { double a[5][5]; double sum[5]= {0}; for (int i = 0; i < 5; i ++ ) { for (int j = 0;...
2024-03-28
2
194
题解 | #[NOIP2008]ISBN号码#
#include <stdio.h> #include <string.h> int main() { char s[15]; scanf("%s", s); int ans = 0; int len = strlen...
2024-03-28
1
180
题解 | #小乐乐查找数字#
#include <stdio.h> #define N 110 int a[N]; int cnt[N] = {0}; int main() { int n; scanf("%d", &n); for (int i = 0; ...
2024-03-28
1
152
题解 | #【模板】栈#
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct StackNode { int data; struct StackNode* next; }St...
2024-03-28
1
193
题解 | #有序序列插入一个整数#
#include <stdio.h> #define N 55 int a[N]; int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i ++ ) ...
2024-03-27
1
140
题解 | #二叉树遍历#
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct TreeNode { char data; struct TreeNode* lchild; struct ...
2024-03-27
1
204
题解 | #获得月份天数#
#include <stdio.h> // 平年每年每月的天数 int days[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int getDays(int year, int month) { if ...
2024-03-26
1
186
首页
上一页
1
2
3
下一页
末页