new_jytx
new_jytx
全部文章
分类
归档
标签
去牛客网
登录
/
注册
new_jytx的博客
全部文章
(共14篇)
题解 | #牛牛的链表交换#
#include<stdio.h> #include<stdlib.h> #define bool char #define true 1 #define false 0 typedef struct node { int data; struct node* next;...
2024-03-09
1
200
题解 | #小乐乐与进制转换#
#include<stdio.h> int main() { int a = 0; int arr[12] = { 0 }; scanf("%d", &a); int i = 0; while (a) { arr[i] = a % 6; a...
2024-02-02
1
160
题解 | #公务员面试#
//看题解基本不是用数组写的,用数组写的话不能多组输入,突然想到这样写就成了 #include<stdio.h> int main() { int arr[7] = {0}; int i = 0, max = 0, min = 100, sum = 0; while (scanf(...
2024-02-02
1
170
题解 | #公务员面试#
#include<stdio.h> int main() { int arr[7] = {0}; int i = 0, max = 0, min = 100, sum = 0; while (scanf("%d", &arr[i]) != EOF) {...
2024-02-02
1
155
题解 | #水仙花数#
#include<stdio.h> int main() { int m, n, sum = 0; while (scanf("%d %d", &m, &n) != EOF) { int count = 0; for (int i = m...
2024-01-26
1
150
题解 | #简单计算器#
#include<stdio.h> int main() { double a, b; a = b = 0.0; char c; scanf("%lf%c%lf", &a, &c, &b); switch (c) { case '...
2024-01-26
1
166
题解 | #计算商品打折结算金额#
#include<stdio.h> int main() { float a = 0, sum = 0; scanf("%f", &a); if (a >= 100) { if (a < 500) sum = a * 0.9; ...
2024-01-24
1
167
题解 | #复制部分字符串#
#include<stdio.h> #include<string.h> int main() { char a[30] = { 0 }; int m = 0; scanf("%s%d", a, &m); char ...
2024-01-12
1
181
题解 | #有序序列插入一个整数#
#include<stdio.h> int main() { int n = 0, arr[50] = { 0 }, i = 0, tm = 0; scanf("%d", &n); for (; i < n; i++) scanf("...
2024-01-07
1
133
题解 | #小乐乐计算函数#
#include<stdio.h> int max3(a, b, c) { if (a > b && a > c) return a; else if (b > a && b > c) ...
2024-01-02
1
164
首页
上一页
1
2
下一页
末页