Chengzi_
Chengzi_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Chengzi_的博客
全部文章
(共14篇)
题解 | #牛牛的新数组求和#
#include <stdio.h> int main() { int n, b, sum=0; scanf("%d", &n); for (int i = 1; i <= n; i++) { scanf(&qu...
2024-09-29
0
45
题解 | #增加派对名单(二)#
list_ = ['Allen'] a = input().split(' ') for i in a: list_.append(i) print(list_)
2023-10-14
0
189
题解 | #增加派对名单(一)#
print("['Niuniu', 'Niumei', 'Lucy', 'Niuneng', 'Niukele', 'Jack', 'Tom', 'Tony', 'Allen']") 打表通过
2023-10-14
0
170
题解 | #列表的长度#
a = input() //输入 print(len(a.split(' '))) //输出
2023-10-14
0
194
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; // write your code here...... int main() { int m, n; cin >> m; cin >> n; ...
2023-06-18
0
201
题解 | #编写函数实现字符串翻转(引用方式)#
#include<bits/stdc++.h> using namespace std; // write your code here...... void reverse_string(string & s) { int len=s.length(); for(int...
2023-06-18
0
183
题解 | #创建动态数组#
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // write your cod...
2023-06-17
0
187
题解 | #利用指针遍历数组#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
2023-06-17
0
202
题解 | #结构体简单使用#
#include <iostream> #include <string> using namespace std; struct student { // write your code here...... string name; int ag...
2023-06-17
0
177
题解 | #计算公司年销售额#
#include <iostream> using namespace std; int main() { int arr[4][3] = { {22,66,44}, {77,33,88}, {25,45,65}, {11,66,99} }; ...
2023-06-17
0
204
首页
上一页
1
2
下一页
末页