上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 代码 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; long a[100002]; bool cmp1(long a,long b){ return a>b; } int main() 阅读全文
posted @ 2022-07-11 15:45 qwasdasd 阅读(19) 评论(0) 推荐(0)
摘要: 易错点 每天的骑车距离最大为1的情况下,爱丁顿数 E为0 代码 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; long a[100002]; bool cmp1(long a,long 阅读全文
posted @ 2022-07-11 15:34 qwasdasd 阅读(52) 评论(0) 推荐(0)
摘要: 注意点 判断素数问题 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; int ran[10001]; int natu[10001]; bool nat(int a){ if(a%2==0 阅读全文
posted @ 2022-07-11 13:30 qwasdasd 阅读(29) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; string s[102]; int point[102]; int count[102]; int rcount[102]; int st 阅读全文
posted @ 2022-07-11 12:59 qwasdasd 阅读(25) 评论(0) 推荐(0)
摘要: 关键 二进制的算法 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; int main() { string s; int cnt=0; int zcnt=0,ocnt=0; getline 阅读全文
posted @ 2022-07-11 12:20 qwasdasd 阅读(27) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> using namespace std; int main() { int n; int a; int cnt=0; cin>>n; for(int i=0;i<n;i++){ cin>>a; cnt+=a*11*(n 阅读全文
posted @ 2022-07-11 12:00 qwasdasd 阅读(30) 评论(0) 推荐(0)
摘要: 关键 双端队列的使用 数值和字符串的相互映射(有重复值) 代码 #include <iostream> #include <cstdio> #include <string> #include <set> #include <deque> #include <algorithm> using nam 阅读全文
posted @ 2022-07-11 11:50 qwasdasd 阅读(25) 评论(0) 推荐(0)
摘要: 易错点 变量名要看清楚 操作数组要谨慎 代码 #include <iostream> #include <cstdio> #include <string> #include <iomanip> using namespace std; int main(){ int n; string s; ci 阅读全文
posted @ 2022-07-10 18:18 qwasdasd 阅读(21) 评论(0) 推荐(0)
摘要: 注意点 c++里的百分号输出似乎只能*100后手动加% 代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; int main(){ int n; float e; int d; int k; 阅读全文
posted @ 2022-07-10 15:40 qwasdasd 阅读(19) 评论(0) 推荐(0)
摘要: 错误点 须考虑题干中提到“若用户选择的序号不存在”,可能会大于上限,也可能会小于等于0的情况 注意点 在一串字符中选取特定字符作为输入 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; st 阅读全文
posted @ 2022-07-10 14:49 qwasdasd 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页