克里斯V
克里斯V
全部文章
分类
题解(24)
归档
标签
去牛客网
登录
/
注册
克里斯V的博客
全部文章
(共26篇)
题解 | #域名进行计数排序处理#
awk -F "/" '{print $3}' nowcoder.txt |sort -r |uniq -c|awk '{print $1" "$2}'
bash
2022-07-31
0
274
题解 | #nginx日志分析2-统计某个时间段的IP#
grep "23/Apr/2020:2[0-3]" nowcoder.txt | awk '{print $1}' | sort | uniq | wc -l 当重复的行...
bash
2022-07-26
11
493
题解 | #打印空行的行号#
grep -n ^$ nowcoder.txt|cut -d ':' -f 1
bash
2022-07-19
2
259
题解 | #输出7的倍数#
for i in {0..500} do if test `expr $i % 7` -eq 0 the...
bash
2022-07-17
0
216
题解 | #输出第5行的内容#
tail -n +5 nowcoder.txt|head -1
bash
2022-07-17
0
207
题解 | #计算商场折扣#
import java.util.*; public class Main { public static void main(String[] args) {...
Java
2022-07-09
0
265
题解 | #交换变量值#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner ...
Java
2022-06-26
0
216
题解 | #密码游戏#
s = input() l = list(map(int,s)) l2 = list(map(lambda x:(x+3)%9,l)) l2[0],l2[2] = l2[2],l2[0] l2[1],l2[3] = l2[3],l2[1] ss = list(map(str,l2)) print('...
Python3
2022-06-26
5
382
题解 | #小飞机#
print('**'.center(12)) print('**'.center(12)) print('*'*12) print('*'*12) print('* *'.center(12)) print('* *'.center(12))
字符串
Python3
2022-06-21
0
268
题解 | #统计每个学校各难度的用户平均刷题数#
多表关联分组统计 select t1.university ,t3.difficult_level ,round(count(t2.question_id)/count(distinct t2.device_id),4) as avg_...
数据库
Mysql
2022-06-16
0
257
首页
上一页
1
2
3
下一页
末页