Albert_weiku
Albert_weiku
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Albert_weiku的博客
全部文章
/ 题解
(共3篇)
题解 | #排序#
直接使用快速排序的思路 Java里可以直接用sort函数,二路归并、堆排序也可以达到算法要求 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 将给定数组排序 * @par...
C++
2021-10-15
0
366
题解 | #你能活多少秒#
#include<iostream> using namespace std; int main(){ int age; cin>>age; int seconds=31560000; long long yearSeconds; //当...
C++
2021-10-15
0
442
题解 | #成绩输入输出#
#include<iostream> using namespace std; int main() { int a,b,c;//在题目定数量的情况下,直接设置变量是最简单的 cin>>a>>b>>c;//cin可以识别空格和换行键 ...
C++
2021-10-15
4
608