上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 171 下一页
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int a[3]; char s1, s2; int main() { //充分利用c++语言优势 while (scanf("%c:=%c;", &s1, &s2) == 2) //赋值语句简洁 阅读全文
posted @ 2021-11-18 10:59 糖豆爸爸 阅读(143) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; string a; string b; int main() { cin >> a >> b; int sum1 = 1; for (int i = 0; i < a.size(); i++) su 阅读全文
posted @ 2021-11-18 10:42 糖豆爸爸 阅读(70) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; //原始英文数字 // You are a three eight pig . 10964 unordered_map<string, int> _map = {{"zero", 0}, {"one 阅读全文
posted @ 2021-11-18 10:38 糖豆爸爸 阅读(135) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; /** 0.000009->0.9 0.900000->0.000009 00000.00000->0.0 0/1230000->0/321不是0也不是0/0000321 000000000->0 阅读全文
posted @ 2021-11-18 10:35 糖豆爸爸 阅读(129) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; int boy, girl;//存放答案滴 string x; //这道题太无聊了~ int main() { cin >> x; for (int i = 0; i < x.length(); i 阅读全文
posted @ 2021-11-18 10:29 糖豆爸爸 阅读(75) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int maxN; /** * 功能:获取字符串中有多少个VK */ int getVkCount(string s) { int cnt = 0; for (int i = 0; i < s.l 阅读全文
posted @ 2021-11-18 10:27 糖豆爸爸 阅读(100) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 26; //常数字典 int a[N] = {1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2 阅读全文
posted @ 2021-11-18 10:23 糖豆爸爸 阅读(66) 评论(0) 推荐(0)
摘要: 题目传送门 一、知识点整理 1、字符串转小写 //转为小写 transform(a.begin(), a.end(), a.begin(), ::tolower); for (int i = 0; i < b.size(); i++) if (b[i] >= 'A' && b[i] <= 'Z') 阅读全文
posted @ 2021-11-18 10:13 糖豆爸爸 阅读(429) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; string s, a; int n; int opt; int l, cnt; int main() { cin >> n >> s; while (n--) { cin >> opt; swi 阅读全文
posted @ 2021-11-18 10:00 糖豆爸爸 阅读(171) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; string s; int c; int main() { while (cin >> s) c += s.size(); printf("%d", c); return 0; } 阅读全文
posted @ 2021-11-18 09:51 糖豆爸爸 阅读(54) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 171 下一页
Live2D