寒山客L
寒山客L
全部文章
题解
office技巧(3)
学习笔记(5)
待完善代码题(3)
日常瞎bb(1)
未归档(1)
面经(2)
归档
标签
去牛客网
登录
/
注册
今天也是努力搬砖的一天
智力是最可靠的运气。
全部文章
/ 题解
(共25篇)
题解 | #牛牛的链表添加节点#
#include<stdio.h> typedef struct link{ int elem; struct link *next; }link,*linklist; int main(){ int n,i,j; scanf("%d %d",&n...
C
2022-03-01
0
443
题解 | #牛牛的链表删除#
#include<stdio.h> typedef struct link{ int elem; struct link *next; }link,*linklist; int main(){ int n,x,i; scanf("%d %d",&n...
C
数组
链表
2022-03-01
0
484
题解 | #牛牛的单链表求和#
#include<stdio.h> typedef struct link{ int elem; struct link *next; }link,*linklist; int main(){ int n,i,sum=0; scanf("%d",&...
C
链表
数组
2022-03-01
0
379
题解 | #牛牛的单向链表#
#include<stdio.h> typedef struct link{ int elem;//数据域 struct link *next;//指针域 }link,*linklist; int main(){ int n,i; scanf("%d",&...
C
2022-03-01
3
775
题解 | #牛牛的10类人#
#include<stdio.h> int judge(int s){ int m=0,n=0;//m统计0,n统计1 while(s!=0){ if(s%2==0){ m++; }else{ ...
C
2022-02-28
0
550
题解 | #牛牛的替换#
#include<stdio.h> int main(){ int n,i=0; char a,b,c,d; scanf("%d %c %c %c %c",&n,&a,&b,&c,&d); char s[100]={...
C
2022-02-28
0
409
题解 | #牛牛的素数和#
#include<stdio.h> int issushu(int n){ int i; if(n==1){ return 0; } for(i=2;i<n;i++){ if(n%i==0){ return...
C
2022-02-27
0
326
题解 | #[NOIP2010]数字统计#
#include<stdio.h> int sums(int n){ int x=0; while(n!=0){ if(n%10==2){ x++; } n=n/10; } retur...
C
2022-02-27
7
381
题解 | #The Biggest Water Problem#
开始写的时候一直没想明白调用,后面用了一个nn来记录每一次函数调用后的值用来判断 #include<stdio.h> int chuli(int n){ int sum=0; while(n!=0){ sum+=n%10; n=n/10...
C
2022-02-27
13
695
题解 | #简写单词#
最开始一直没能解决scanf遇空格或tab结束这个问题,后面在网上查了一下下面用的方法。输出的时候直接默认输出第一个字符,和输出前一个字符为空格的字符即可。 #include<stdio.h> #include<string.h> int main(){ int i;...
C
Python3
2022-02-27
6
470
首页
上一页
1
2
3
下一页
末页