当前位置:网站首页>数据分析练习题
数据分析练习题
2022-07-03 08:13:00 【拒绝摆烂倒计时60天】
SQL篇
一、如图为直播表格
(1)使用sql查询直播间送礼数大于等于3的用户编号。
select DISTINCT(Uid) from dataanalysis GROUP BY Uid having sum(Num)>=3
(2)使用sql查询直播间送相同礼数大于等于2的用户编号。
select DISTINCT(Uid) from dataanalysis GROUP BY GiftName having sum(Num)>=2
二、如代码所示,分析myfunc函数的作用。
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int myfunc(int n){
int i=0;
int x=0;
while(i<n){
i+=1;
if(i%3==0)
continue;
x+=i;
printf("%d\n",x);
}
return x;
}
int main(){
int t=myfunc(6);
printf("%d",t);
return 0;
}
myfunc5函数的作用为:将不被3整除的大于等于1小于等于n的整数加和。
边栏推荐
- CLion-Toolchains are not configured Configure Disable profile问题解决
- 什么是数据类型?数据类型有什么用?
- oracle中的 (+)是什么意思
- VMware virtual machine configuration static IP
- PostGIS space function
- The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
- Clip Related Script
- Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- go 解析身份证
猜你喜欢
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
Are you still watching the weather forecast on TV?
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
Open the influence list of "National Meteorological Short Videos (Kwai, Tiktok) in November" in an interactive way“
Unity2019_ Natural ambient light_ Sky box
數據庫應用技術課程設計之商城管理系統
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!
Transplantation of freetype Library
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
L'installateur a été installé avec une erreur inattendue
随机推荐
Client server model
Transplantation of tslib Library
【cocos creator】获取资源uuid
P2704 [noi2001] artillery position (shape pressure DP)
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!
Huawei switches are configured with SSH login remote management switches
JSON与Object之间转换
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
The general trend of data news releases the power of visual reporting ----- essays after reading
The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
haproxy+keepalived搭建01
Flex flexible box layout
MAE
the installer has encountered an unexpected error installing this package
Initial unity
vcs import src < ros2. Repos failed
Maxcompute string splitting function -split_ PART
LinkList
MaxCompute字符串分割函数-SPLIT_PART
数据库应用技术课程设计之商城管理系统