摘要: 1702:找第一个只出现一次的字符 错误 #include<bits/stdc++.h> using namespace std; int main() { char zm[27] = {}; long long cs[27] = {},flag = 0; memset(cs,0,sizeof(cs)); string a; getl 阅读全文
posted @ 2023-12-10 11:21 Qwehhh 阅读(24) 评论(0) 推荐(0)
摘要: 1612:计算2的N次方 这是一道喜闻乐见的高精度题 首先错误代码 #include<bits/stdc++.h> using namespace std; int main() { int a[10001]; memset(a,0,sizeof(a)); a[1] = 1; int n,m,s,t = 0,len = 0; 阅读全文
posted @ 2023-12-10 11:16 Qwehhh 阅读(54) 评论(0) 推荐(0)
摘要: 1804:错误探测 原题 这道题虽然一次ac了,而且写的很顺,没调就过了,所以记录一下想法撒 #include<bits/stdc++.h> using namespace std; int main() { int s[101][101] = {}; int x[101],y[101]; int n,flag = 0 阅读全文
posted @ 2023-12-10 11:13 Qwehhh 阅读(43) 评论(0) 推荐(0)