首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客52838656号
获赞
62
粉丝
17
关注
3
看过 TA
642
东南大学
2024
Java
IP属地:江苏
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客52838656号吗?
发布(36)
评论
刷题
收藏
牛客52838656号
关注TA,不错过内容更新
关注
2023-08-26 14:33
东南大学 Java
题解 | #表示数字#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ String str = in.nextLine(); StringBuilder sb = new StringBuilder(); int flag = 0; //0表示数字的开头,1表示数字的结尾 for(char c: str....
0
点赞
评论
收藏
分享
2023-08-26 14:13
东南大学 Java
题解 | #记负均正#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ int n = in.nextInt(); int[] nums = new int[n]; int count = 0; //负数个数 int count2 = 0; //0的个数 double sum = 0.0; //正数和 fo...
0
点赞
评论
收藏
分享
2023-08-26 13:43
东南大学 Java
题解 | #等差数列#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextInt()) { // 注意 while 处理多个 case int n = in.nextInt(); int res = n*2 + n*(n - 1)*3/2; Syste...
0
点赞
评论
收藏
分享
2023-08-25 13:24
东南大学 Java
题解 | #字符统计#
import java.util.Collections; import java.util.HashMap; import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextLine()) { // 注意 while 处理多个 case S...
0
点赞
评论
收藏
分享
2023-08-25 12:19
东南大学 Java
题解 | #Redraiment的走法#
import java.util.Arrays; import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextInt()) { // 注意 while 处理多个 case int n = in.nextInt(); int[] nums ...
0
点赞
评论
收藏
分享
2023-08-25 10:59
东南大学 Java
题解 | #求解立方根#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextDouble()) { // 注意 while 处理多个 case double a = in.nextDouble(); double left = Math.min(a, -...
0
点赞
评论
收藏
分享
2023-08-25 10:25
东南大学 Java
题解 | #求最小公倍数#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextInt()) { // 注意 while 处理多个 case int a = in.nextInt(); int b = in.nextInt(); int T = 1; int...
0
点赞
评论
收藏
分享
2023-08-16 09:52
东南大学 Java
题解 | #平均活跃天数和月活人数#
select date_format(submit_time,'%Y%m') as month, round((count(distinct uid, date_format(submit_time,'%Y%m%d')))/count(distinct uid),2) avg_active_days, count(distinct uid) mau from exam_record where year(submit_time)=2021 and submit_time is not null group by date_format(submit_time,'%Y%m')
0
点赞
评论
收藏
分享
2023-08-15 14:06
东南大学 Java
题解 | #得分不小于平均分的最低分#
select min(score) as min_score_over_avg from exam_record left join examination_info using (exam_id) where tag='SQL' and score >= ( select avg(score) from exam_record t1 left join examination_info t2 using (exam_id) where tag='SQL' )
0
点赞
评论
收藏
分享
2023-08-15 13:53
东南大学 Java
题解 | #统计作答次数#
select count(start_time) total_pv, count(score) complete_pv, count(distinct exam_id and score is not null) complete_exam_cnt from exam_record
0
点赞
评论
收藏
分享
2023-08-15 13:38
东南大学 Java
题解 | #创建索引#
create index idx_duration on examination_info(duration); create unique index uniq_idx_exam_id on examination_info(exam_id); create fulltext index full_idx_tag on examination_info(tag)
0
点赞
评论
收藏
分享
2023-08-15 10:31
东南大学 Java
题解 | #删除记录(二)#
delete from exam_record where submit_time is null or timestampdiff(minute,start_time,submit_time)<5 order by start_time limit 3
0
点赞
评论
收藏
分享
2023-08-15 10:26
东南大学 Java
题解 | #更新记录(二)#
update exam_record set submit_time='2099-01-01 00:00:00',score=0 where date(start_time)<'2021-09-01' and submit_time is null
0
点赞
评论
收藏
分享
2023-08-15 09:48
东南大学 Java
题解 | #插入记录(一)#
insert into exam_record values (null,1001,9001,'2021-09-01 22:11:12','2021-09-01 23:01:12',90), (null,1002,9002,'2021-09-04 07:01:02',null,null)
0
点赞
评论
收藏
分享
2023-08-15 09:20
东南大学 Java
题解 | #将两个 SELECT 语句结合起来(一)#
select prod_id,quantity from OrderItems where prod_id like 'BNBG%' union select prod_id,quantity from OrderItems where quantity=100 order by prod_id asc
0
点赞
评论
收藏
分享
1
2
3
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务