上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页
摘要: ###L2-001 紧急救援 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL MAXN=1e18; const LL N=2002,M=520; 阅读全文
posted @ 2022-12-24 17:51 高尔赛凡尔娟 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/dp/tasks/dp_g 题目大意: 给定n个点,m条有向边(确定无环),问最长路径是多少? Sample Input 1 4 5 1 2 1 3 3 2 2 4 3 4 Sample Output 1 3 #include<bits/std 阅读全文
posted @ 2022-12-23 11:02 高尔赛凡尔娟 阅读(19) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/dp/tasks/dp_f 题目大意: 给定字符串s和c(1<=s,c<=3000),求最长公共子序列的具体字符串。 Sample Input 1 axyb abyxb Sample Output 1 axb 正解: #include<bits 阅读全文
posted @ 2022-12-23 09:22 高尔赛凡尔娟 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/dp/tasks/dp_e 题目大意: 有N个物品,编号为1,2,…,N。对于每个i (1≤i≤N),物品I的权重为wi,价值为vi。 Taro决定从N件物品中挑选一些,用背包带回家。背包的容量是W,这意味着所带物品的重量之和必须至多为W(<= 阅读全文
posted @ 2022-12-22 22:16 高尔赛凡尔娟 阅读(40) 评论(0) 推荐(0) 编辑
摘要: ###4716. 进球 题目大意: 整场比赛双方一共打进了 n 个进球,进球多的一方将收获最终的胜利。 请你根据进球纪录,判断哪支球队最终获胜。 保证不存在平局。 输入样例1: 1 ABC 输出样例1: ABC 输入样例2: 5 A ABA ABA A A 输出样例2: A #include<bit 阅读全文
posted @ 2022-12-21 22:17 高尔赛凡尔娟 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #数据分析常用python包 #numpy:科学计算工具包 #pandas:数据分析工具包 #malplotlib:图表绘制工具包 #improt语句:加载工具包 import numpy as np import pandas as pd import seaborn as sns import 阅读全文
posted @ 2022-12-20 23:26 高尔赛凡尔娟 阅读(228) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1760 【赛时A-E代码】 ###A. Medium Number 题目大意: 三个数字,求第二大的数字。 input 9 5 2 6 14 3 4 20 2 1 1 2 3 11 19 12 10 8 20 6 20 3 4 1 3 阅读全文
posted @ 2022-12-20 18:16 高尔赛凡尔娟 阅读(27) 评论(0) 推荐(0) 编辑
摘要: (:我一开始以为我要爆0了,跌,磕磕绊绊,还好写出了这两题,后面的太难了题目都没看hh https://codeforces.com/contest/1763 ###A. Absolute Maximization 题目大意: 给定一个数组a,我们可以任意移动不同数字上的同位置上的二进制数0或1 问 阅读全文
posted @ 2022-12-20 10:19 高尔赛凡尔娟 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 昨晚忙着找py数据分析入门了,又🕊了,下午vp了补上,D好奇妙啊(也有可能是我变笨了) https://codeforces.com/contest/1772 A. A+B? 题目大意: 给定A+B的字符串,AB都在10以内,求结果 input 4 4+2 0+0 3+7 8+9 output 6 阅读全文
posted @ 2022-12-19 22:13 高尔赛凡尔娟 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 环境: shell工具:git bash(自行下载),对比cmd:几乎接近linux命令 jupyter lab是jupyter notebook升级版 实操: 桌面右键点击git bash here进入mingw64界面 输入jupyter lab进入网页 点击python3进入操作页面 数据分析 阅读全文
posted @ 2022-12-19 00:13 高尔赛凡尔娟 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 30 下一页