_becky
_becky
全部文章
分类
题解(76)
归档
标签
去牛客网
登录
/
注册
_becky的博客
加油~
TA的专栏
76篇文章
0人订阅
华为机考
76篇文章
1138人学习
全部文章
(共75篇)
题解 | #输入整型数组和排序标识,对其元素按照升序或降序进行排序#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin >> n) { vector<int> v; int x;...
C++
2022-03-07
2
270
题解 | #提取不重复的整数#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string s=to_string(n); unordered_set<char>s...
C++
2022-03-07
1
292
题解 | #取近似值#
来自专栏
#include<bits/stdc++.h> using namespace std; int main () { float f; cin >> f; cout << int(f + 0.5) << endl; re...
C++
2022-03-07
10
304
题解 | #杨辉三角的变形#
来自专栏
#include<iostream> using namespace std; int main() { int n; while(cin>>n) { if(n==1||n==2)cout<<-1<<endl; ...
C++
2022-03-05
0
212
题解 | #输出单向链表中倒数第k个结点#
来自专栏
#include<iostream> using namespace std; struct Node { int data; Node* next; Node(int x):data(x),next(nullptr){}; }; Node* back(Node*...
C++
2022-03-05
1
427
题解 | #统计字符#
来自专栏
#include<iostream> #include<string> using namespace std; int main() { string str; while (getline(cin, str)) { int a = ...
C++
2022-03-05
1
382
题解 | #统计每个月兔子的总数#
来自专栏
#include<iostream> using namespace std; int main() { int n; while(cin >> n) { if(n <= 2) cout << ...
C++
2022-03-05
0
303
题解 | #蛇形矩阵#
来自专栏
#include<iostream> using namespace std; int main() { int a; while (cin >> a) { int m = 1; for (int i = 0; i &l...
C++
2022-03-05
1
293
题解 | #图片整理#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string str; while (getline(cin, str)) { sort(str.begin(), str.end(...
C++
2022-03-05
0
269
题解 | #单词倒排#
来自专栏
#include <bits/stdc++.h> using namespace std; int main() { char c; string ans, word; while(cin.get(c)) { if(isalpha(c)) ...
C++
2022-03-05
0
253
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页