上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: #include #include #include using namespace std; int a[10000]; int main() { for(int i=0;i<10000;i++){ a[i]=0; } int k; int n; int tmp; multiset st; cin 阅读全文
posted @ 2022-07-16 11:09 qwasdasd 阅读(26) 评论(0) 推荐(0)
摘要: 易错点 测试点1、4:结点数量n和区块结点数k满足(n-1)%k==0的情况 测试点2:k为1的情况 如输入为:“00100 2 1 00100 1 12309 12309 2 -1” 代码 #include <iostream> #include <cstdio> #include <string 阅读全文
posted @ 2022-07-16 10:53 qwasdasd 阅读(263) 评论(0) 推荐(0)
摘要: 易错点 测试点1、2:注意输入字符串末尾连续多个非字母字符的情况,如:“DASJD'ASDDA;SAD.;;” 测试点3:空格也算字符,因此不能用cin,要用getline() 测试点4:字母结尾的情况,如“SADS.ASDDA" 代码 #include <iostream> #include <c 阅读全文
posted @ 2022-07-16 09:38 qwasdasd 阅读(224) 评论(1) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> #include <string> #include <map> using namespace std; int main() { string s; map<char,int> mp; mp['S']=0; mp[ 阅读全文
posted @ 2022-07-15 23:27 qwasdasd 阅读(20) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> using namespace std; int main() { int n,m; int w; int maxw; int maxmaxw=-11; cin>>n>>m; for(int i=0;i<n;i++){ 阅读全文
posted @ 2022-07-15 23:18 qwasdasd 阅读(40) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; char a[1000]; int main() { int n; a[0]='2'; a[1]='0'; a[2]='1'; a[3]=' 阅读全文
posted @ 2022-07-15 23:11 qwasdasd 阅读(32) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; int a[100000]; string nxt[100000]; string p1[100000]; string p2[100000 阅读全文
posted @ 2022-07-15 22:40 qwasdasd 阅读(53) 评论(0) 推荐(0)
摘要: 如果输入是可以遍历的,先找一份ac代码,然后将它和自己的代码的输出都改为拼接字符串,将两份代码放到一个程序里,比较两个代码的输出字符串,就有机会找出让自己代码无法ac的测试点。 阅读全文
posted @ 2022-07-15 17:32 qwasdasd 阅读(23) 评论(0) 推荐(0)
摘要: 易错点 测试点2,需要排序,先按n排,再按A排 如果用了map/vector,测试点0、1、3,每次循环完需要clear() 代码 #include <iostream> #include <cstdio> #include <string> #include <utility> #include 阅读全文
posted @ 2022-07-15 17:28 qwasdasd 阅读(169) 评论(0) 推荐(0)
摘要: 易错点 测试点4考察:1和1算不算一对缘分数 由于题目中提到“其中 a 和它的小弟 a−1 的立方差正好是另一个整数 c 的平方”,“另一个整数”指明隐含条件:a != c 代码 #include <iostream> #include <cstdio> #include <cmath> using 阅读全文
posted @ 2022-07-15 10:50 qwasdasd 阅读(124) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页