lck_lu
lck_lu
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lck_lu的博客
全部文章
(共19篇)
题解 | #农夫、羊、菜和狼的故事#
#include "bits/stdc++.h" using namespace std; int main() { /* * 有一个农夫带一只羊、一筐菜和一只狼过河。如果没有农夫看管,则狼要吃羊,羊要吃菜。但是船很小,只够农夫带一样东西过河。问农夫该如何解此难...
2024-02-20
2
278
题解 | #最长&最短文本#
#include "bits/stdc++.h" using namespace std; struct text { char array[1000]; int length; int order; }; bool cmp(text t1, text...
2024-02-19
0
232
题解 | #八进制#
#include "bits/stdc++.h" using namespace std; int main() { int n; int temp; while (cin >> n) { int i = 0; ...
2024-02-19
0
218
题解 | #阶乘#
#include "bits/stdc++.h" using namespace std; int jiechen(int n) { int result = 1; for (int i = 1; i <= n; ++i) { result ...
2024-02-19
0
229
题解 | #回文字符串#
#include "bits/stdc++.h" using namespace std; int main() { bool flag= true; string str; while(getline(cin,str)) { ...
2024-02-19
0
213
题解 | #复数集合#
#include "cstdio" #include "queue" #include "string" #include "iostream" using namespace std; struct Complex ...
2024-02-01
0
188
题解 | #排序#
#include "bits/stdc++.h" using namespace std; bool cmp(int a,int b){ return a<b; } int main() { int n; int array[100000]={0};...
2024-01-31
0
187
题解 | #a+b#
#include <bits/stdc++.h> /* * 高精度算法 */ using namespace std; int main() { string s1,s2=""; int a1[10000]={0},a2[10000]={0},a...
2024-01-31
0
197
题解 | #字符串连接#
#include <bits/stdc++.h> using namespace std; int main() { int n=0,i=0; char array1[200]={0}; //此次未进行初始化可能会有部分测试点不通过报错 char ar...
2024-01-31
0
156
题解 | #字符串连接# 本题为啥cout输出会报错呀
#include <bits/stdc++.h> using namespace std; int main() { int n=0,i=0; char array1[200]; char array2[200]; scanf("%s%s&q...
2024-01-31
0
185
首页
上一页
1
2
下一页
末页