想要offer的菠萝蜜很有礼貌
想要offer的菠萝蜜很有礼貌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
想要offer的菠萝蜜很有礼貌的博客
全部文章
(共38篇)
题解 | #守形数#
#include<bits/stdc++.h> using namespace std; //判断一个数是否为守形数 bool judge(int n, int nSquare) { //平方数-原数,最后一位或两位为0才符合要求 if (nSquare > 0 ...
2024-03-19
0
258
题解 | #统计字符#
#include<bits/stdc++.h> #include <unordered_map> using namespace std; //统计字符串中指定字符出现的次数 int count(char c, string str2) { int sum = 0;...
2024-03-18
0
192
题解 | #位操作练习#
#include<bits/stdc++.h> using namespace std; //函数用于判断num1的16位二进制表示形式是否能由num2经过循环左移得到 bool can_be_shifted(unsigned short num1, unsigned short nu...
2024-03-18
0
364
题解 | #统计同成绩学生人数#
#include<bits/stdc++.h> using namespace std; int main() { int N;//学生人数 while (cin >> N) { //当读到N=0时输入结束,跳出循环 if (...
2024-03-16
0
190
题解 | #加减乘除#
#include<bits/stdc++.h> using namespace std; //求阶乘函数 int jiecheng(int n) { if (n == 0 || n == 1) { return 1; } else { r...
2024-03-16
0
222
题解 | #学分绩点#
#include<bits/stdc++.h> using namespace std; //获取每门课程的学分 void get_credit(int n, vector<float>& credit) { for (int i = 0; i < n...
2024-03-16
0
244
题解 | #打印极值点下标#
#include<bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { vector<int> num;//用vector数组存储输入...
2024-03-16
0
255
题解 | #字符串的反码#
#include<bits/stdc++.h> using namespace std; int main() { string str; getline(cin, str); for (char c : str) { //如果这是一个小写字符...
2024-03-15
0
205
题解 | #字符串链接#
#include<bits/stdc++.h> using namespace std; int main() { //输入待拼接的两个字符串 string str1, str2; getline(cin, str1); getline(cin, str...
2024-03-15
0
185
题解 | #字母统计#
#include<bits/stdc++.h> using namespace std; int main() { string str; getline(cin, str); map<char, int> count = { //输入的序...
2024-03-15
0
245
首页
上一页
1
2
3
4
下一页
末页