sunjun940
sunjun940
全部文章
分类
归档
标签
去牛客网
登录
/
注册
sunjun940的博客
全部文章
(共44篇)
题解 | 找x
#include <stdio.h> int main() { int n,t=0; scanf("%d",&n); int c[n]; for(int i=0;i<n;i++) { scanf("%d...
2026-03-18
0
30
题解 | 互换最大最小数
#include <stdio.h> int main() { int a, b,m=0,n,t=0; scanf("%d", &n); int c[n]; for(int i=0;i<n;i++) { s...
2026-03-18
0
33
题解 | 百鸡问题
#include <stdio.h> int main() { int b ,n,x,y,z; scanf("%d", &n) ; b=n; for(x=0;x<=100;x++){ for...
2026-03-18
0
26
题解 | 完数
#include <stdio.h> int wang(int n){ int sum=1; for(int i=2;i<=sqrt(n);i++){ if(n%i==0)sum=sum+(i+n/i);} return sum; } int main() { ...
2026-03-18
0
34
题解 | 众数
#include <stdio.h> int main() { int a, b; int c[10]={0}; int d[20]; for(int i=0;i<20;i++){ scanf("%d",&...
2026-03-18
0
27
题解 | 众数
#include <stdio.h> int main() { int a, b; int c[10]={0}; int d[20]; for(int i=0;i<20;i++){ scanf("%d",&...
2026-03-18
0
32
题解 | 计算男生人数以及平均GPA
select count(gender) as male_num,avg(gpa) as avg_gpa from user_profile where gender='male'; count 统计数量
2026-03-18
0
34
题解 | 查看学校名称中含北京的用户
select device_id, age,university from user_profile where university like "%北京%"; 用 university like "%北京%"哈哈
2026-03-18
0
39
题解 | 用where过滤空值练习
select device_id,gender,age,university from user_profile where age is not null; where x x is not null
2026-03-18
0
33
题解 | 查找年龄大于24岁的用户信息
select device_id,gender,age,university from user_profile having age>24; where和having都可以
2026-03-18
0
30
首页
上一页
1
2
3
4
5
下一页
末页