靓仔兴
靓仔兴
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
靓仔兴的博客
全部文章
(共29篇)
题解 | #求最小公倍数#
#include <iostream> using namespace std; int getminb(int a,int b) { int n= max(a,b); for(int i=n;;i++) { if(i%a==0&&i%b==0) ...
2023-02-11
0
222
题解 | #计算日期到天数转换#
/* * @Description: If you get question about the code, contact me at **********. * @Author: pengjunxing * @Date: 2023-02-10 20:32:13 * @LastEditor...
2023-02-10
0
236
题解 | #百钱买百鸡问题#
/* * @Description: If you get question about the code, contact me at **********. * @Author: pengjunxing * @Date: 2023-02-10 20:05:28 * @LastEditor...
2023-02-10
0
281
题解 | #放苹果#
/* * @Description: If you get question about the code, contact me at **********. * @Author: pengjunxing * @Date: 2023-02-08 14:47:20 * @LastEditor...
2023-02-10
0
352
题解 | #查找输入整数二进制中1的个数#
/* * @Description: If you get question about the code, contact me at **********. * @Author: pengjunxing * @Date: 2023-02-10 19:59:42 * @LastEditor...
2023-02-10
0
326
题解 | #查找组成一个偶数最接近的两个素数#
/* * @Description: If you get question about the code, contact me at **********. * @Author: pengjunxing * @Date: 2023-02-08 14:28:15 * @LastEditor...
2023-02-08
0
261
题解 | #图片整理#
#include <iostream> using namespace std; int main() { string s; cin>>s; int length =s.size(); for(int i=0;i<length;i++)...
2023-01-14
0
268
题解 | #单词倒排#
#include<iostream> #include<sstream> #include<vector> using namespace std; int main() { vector<string> word; string ch...
2023-01-14
0
262
题解 | #删除字符串中出现次数最少的字符#
#include <iostream> using namespace std; int main() { int time[26]={0}; int min=20; char ch; string s; cin>>s; int...
2023-01-12
0
232
题解 | #汽水瓶#
#include <iostream> using namespace std; int function(int x) { int num=0; while(x>2) { num = num + x/3; x = (x/3)...
2023-01-12
0
215
首页
上一页
1
2
3
下一页
末页