offer快朝我砸来
offer快朝我砸来
全部文章
分类
归档
标签
去牛客网
登录
/
注册
offer快朝我砸来的博客
全部文章
(共75篇)
题解 | #矩阵计算#
#include <stdio.h> int main() { int n, m, sum = 0; int i = 0, j = 0; int arr[20][20] = { 0 }; scanf("%d %d", &n, &m); for (i = 0; i < n;...
2023-04-20
0
218
题解 | #密码验证#
#include <stdio.h> #include <string.h> int main() { char ch1[100] = { 0 }; char ch2[100] = { 0 }; while (scanf("%s %s", ch1, ch2) != EO...
2023-04-20
0
239
题解 | #有序序列插入一个数#
#include <stdio.h> int main() { int arr[100] = { 0 }; int temp = 0; int n = 0, i = 0, j = 0, m = 0; scanf("%d", &n); for (i ...
2023-04-20
0
188
题解 | #统计成绩#
#include <stdio.h> int main() { int a = 0; float sum = 0.0; float average = 0.0; int i = 0, j = 0, temp; float arr[100] = { 0 }; scanf("%d...
2023-04-20
0
205
题解 | #奇偶统计#
#include <stdio.h> int main() { int odd = 0; int i = 1; int sum1 = 0, sum2 = 0; int even = 0; int n = 0; while (scanf("%...
2023-04-20
0
181
题解 | #包含数字9的数#
#include <stdio.h> int main() { int i = 1; int sum = 0; int One = 0, Ten = 0, Hundred = 0; for (i = 1; i <= 2019; i++) { Hundred = i /...
2023-04-20
0
161
题解 | #计算y的值#
#include <stdio.h> int main() { int a = 0; while (scanf("%d", &a) != EOF) { if (a <0) printf("1\n"); else if (a == 0) printf("0\...
2023-04-20
0
222
题解 | #图像相似度#
//刚开始半天没看懂题目,其实就是输入两个m×n的矩阵,矩阵的每个元素都是由0和1组成,寻找两个矩阵相同位置对应的数字是否相同,将相同的数字总数除以m×n再乘以100就是所对应的对比度 #include <stdio.h> int main() { int a = 0, b = ...
2023-04-20
0
335
题解 | #被5整除问题#
#include <stdio.h> int main() { int n = 0; while (scanf("%d", &n) != EOF) { if (n > 0 && n < 100000) { if (n % 5 == 0) { ...
2023-04-19
0
207
题解 | #学好C++#
#include <stdio.h> int main() { printf("I will learn C++ well!\n");//这题玩人智商吗,真的无语住了,家人们 return 0; }
2023-04-19
0
232
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页