孤叶123
孤叶123
全部文章
题解
归档
标签
去牛客网
登录
/
注册
孤叶123的博客
全部文章
/ 题解
(共49篇)
题解 | #创建动态数组#
#include using namespace std; int main() { int n; cin >> n; // write your code here...... int* my_sz = new int[n](); for (int i = 0; i<n; i...
C++
2022-03-28
1
311
题解 | #字符的个数#
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int sum = s.size(); int a = 0, b ...
C++
2022-03-28
0
414
题解 | #实现四舍五入#
#include using namespace std; int main() { double a = 0; double b = 0; cin >> a; b = a * 10; a = (int)a; b = (int)b % 10; if (a >= 0) { ...
C++
2022-02-21
0
268
题解 | #最高身高#
#include <stdio.h> int main() { int n = 0; int m = 0; int i = 0; int j = 0; int arr[10][10] = {0}; int max = 0; int x = 1; int y = 1; scanf("%d ...
C
2021-12-05
0
299
题解 | #有序序列插入一个数#
#include <stdio.h> int main() { int n = 0; int arr[51] = {0}; int i = 0; int x = 0; int j = 0; scanf("%d", &n); for (i=0; i<n; i++) { ...
C
2021-11-18
0
372
题解 | #有序序列插入一个数#
#include <stdio.h> int main() { int n = 0; int arr[51] = {0}; int i = 0; int x = 0; int j = 0; scanf("%d", &n); for (i=0; i<n; i++) { ...
C
2021-11-18
0
327
题解 | #公务员面试#
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> void bubble(int arr[], int a) { int j = 0; int i = 0; int flag = 0; for (i = 0; i < a - 1;...
C
2021-11-18
0
438
题解 | #HTTP状态码#
#include <stdio.h> int main() { int http = 0; while (scanf("%d", &http) != EOF) { if (http == 200) printf("OK\n"); else if (...
C
2021-11-16
0
318
题解 | #空心三角形图案#
#include <stdio.h> int main() { int x = 0; int i =0; int j =0; while (scanf("%d", &x) != EOF) { for (i=0; i<x; i++) { for (j=0; j<i+1;...
C
2021-11-15
0
265
题解 | #空心正方形图案#
#include <stdio.h> int main() { int x = 0; int i = 0; int j = 0; char ch[20][20] = {0}; while (scanf("%d", &x) != EOF) { for (i=0; i<...
C
2021-11-15
0
373
首页
上一页
1
2
3
4
5
下一页
末页