路人萌Miranda
路人萌Miranda
全部文章
题解
归档
标签
去牛客网
登录
/
注册
路人萌Miranda的博客
全部文章
/ 题解
(共15篇)
题解 | #Hello World for U#
#include <cstdio> #include <string> using namespace std; int main() { string str; while (cin >> str) { int len = str.size(); ...
C++
2022-03-17
1
445
题解 | #最大公约数#
#include <cstdio> int GCD(int a, int b) { if (a % b == 0) { return b; } else { return GCD(b, a % b); } } int main() { int a, b; whil...
C++
2022-03-16
0
242
题解 | #打印日期#
#include <cstdio> using namespace std; int dayTab[2][13] = { {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {0, 31, 29, 31, 30, 31, 3...
C++
2022-03-16
0
346
题解 | #寻找大富翁#
#include <cstdio> #include <algorithm> #include <cstring> using namespace std; int main() { int n, m; while ((scanf("%d%d", &...
C++
2022-03-16
0
359
题解 | #A+B#
#include <cstdio> #include <string> using namespace std; int main() { string A, B; while (cin >> A >> B) { long long a =...
C++
2022-03-16
7
343
题解 | #字符串连接#
#include <cstdio> using namespace std; int main() { char str1[300], str2[100]; while (scanf("%s%s", str1, str2) != EOF) { int i = 0; wh...
C++
2022-03-16
5
563
题解 | #Problem E#
#include <iostream> #include <stack> #include <string> using namespace std; int main() { int n = 0; scanf("%d", &n); for(in...
C++
2022-03-15
0
351
题解 | #加减乘除#
#include <iostream> #include <algorithm> using namespace std; int main() { string str; while (cin >> str) { sort(str.begin(), ...
C++
2022-03-15
0
448
题解 | #Problem B#
#include <cstdio> #include <algorithm> #include <cstring> using namespace std; int main() { int m; while (cin >> m) { in...
C++
2022-03-13
0
397
题解 | #字符串去特定字符#
#include <cstdio> #include <string> using namespace std; int main() { string s; char c; while (cin >> s >> c) { for(int...
C++
C
2022-03-13
0
341
首页
上一页
1
2
下一页
末页