摘要: 输入样例: H3el5o2 题解: #include<bits/stdc++.h> using namespace std; char s[110]; string res ; int num; int main() { scanf("%s",s); for(int i=0;i<strlen(s); 阅读全文
posted @ 2023-04-06 20:36 小花护符 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 题解: #include<bits/stdc++.h> using namespace std; int main() { long long n; cin>>n; while(n>0) { cout<<n<<" "; n=n/2; } } 阅读全文
posted @ 2023-04-06 20:35 小花护符 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 输入样例: i+i*i# 我的题解: #include<bits/stdc++.h> using namespace std; char s[100]; int num,k; void E(); void F(); void G(); void T(); void S(); void E() { i 阅读全文
posted @ 2023-04-03 22:29 小花护符 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 做oj题目3333的时候发现了使用cout<<endl;爆出TLE错误的情况而使用printf("\n")、cout<<"\n"、cout<<'\n' 以及puts("")都没有这种情况 使用cout<<endl;的情况 使用cout<<"\n";的情况 使用printf("\n");的情况 使用p 阅读全文
posted @ 2023-04-01 16:46 小花护符 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 我的题解: #include<stack> #include<string.h> #include<stdlib.h> #include<iostream> #include<algorithm> #include<stdio.h> using namespace std; int a[100010 阅读全文
posted @ 2023-04-01 16:34 小花护符 阅读(11) 评论(0) 推荐(0) 编辑
摘要: C++中 stringstream 方法存在于 头文件 <sstream>中 作用: 使用 stringstream方法,将某一字符串生成输入流,然后可以利用这个输入流把长的整行字符串转换成单个字符 #include<bits/stdc++.h> using namespace std; int a 阅读全文
posted @ 2023-03-27 09:12 小花护符 阅读(576) 评论(1) 推荐(0) 编辑
摘要: 、、、、 代码实现 #include<bits/stdc++.h> using namespace std; long long a,b,c; int vis[10]; long long n; int ans; bool check(int a,int c) { b=n*c-a*c; if(a<= 阅读全文
posted @ 2023-03-21 16:09 小花护符 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 #include<list> 3 using namespace std; 4 string str; 5 char line; 6 string num; 7 string s; 8 int flag =0; 9 10 string key[ 阅读全文
posted @ 2023-03-12 19:19 小花护符 阅读(24) 评论(0) 推荐(0) 编辑