程序猿牛渴了
程序猿牛渴了
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
程序猿牛渴了的博客
全部文章
(共13篇)
题解 | #求最小公倍数#简单快捷
#include <bits/stdc++.h> using namespace::std; int main() { int n = 0; int m = 0; while (cin >> n >> m) { int tmp = 0; int ...
C++
2022-01-16
0
321
题解 | #合法IP# 输入不保证正确,只能逐项判断
#include <bits/stdc++.h> using namespace::std; int main() { string str; while (getline(cin, str)) { vector<string> vec; stringstr...
C++
2022-01-14
1
415
题解 | #参数解析#
#include <bits/stdc++.h> using namespace::std; int main() { string str; while (getline(cin, str)) { vector<string> vec; int j = 0...
C++
2022-01-13
0
335
题解 | #矩阵乘法计算量估算#
#include <bits/stdc++.h> using namespace::std; int main() { int num = 0; while (cin >> nu...
C++
2022-01-12
3
371
题解 | #MP3光标位置#逻辑题
#include <bits/stdc++.h> using namespace::std; int main() { int num = 0; string str; &nb...
C++
2022-01-09
0
361
题解 | #DNA序列#简单解法,遍历即可
#include <bits/stdc++.h> using namespace::std; int main() { string str; int num; ...
C++
2022-01-09
0
387
题解 | #完全数计算#
#include <bits/stdc++.h> using namespace::std; bool isPerfectNum(const int &num, unordered_set<uint> &us) { int sum...
C++
2022-01-09
0
349
题解 | #输出单向链表中倒数第k个结点#
#include <bits/stdc++.h> using namespace::std; struct ListNode { int m_nKey; ListNode *m_pNext; }; struct ListNode *createNode(int data) { List...
C++
2022-01-08
2
563
题解 | #名字的漂亮度#
#include <bits/stdc++.h> using namespace::std; int main() { int num; cin >> num; while (num--) { int i = 26; int sum = 0; int ...
C++
2022-01-08
0
338
题解 | #字符串加密#
#include <bits/stdc++.h> using namespace::std; int main() { string sKey, sStr; while (getline(cin, sKey) && getline(cin, sStr)) { s...
C++
2022-01-06
0
431
首页
上一页
1
2
下一页
末页