羊客202
羊客202
全部文章
分类
归档
标签
去牛客网
登录
/
注册
羊客202的博客
全部文章
(共42篇)
题解 | #牛牛学数列4#
#include <stdio.h> int main() { int n = 0, i = 0, sum = 0, tem = 0; scanf("%d", &n); tem = n; for (i = 1; i <= n; i++) { ...
2023-10-22
1
200
题解 | #奇偶统计#
#include <stdio.h> int main() { int n = 0, odd = 0, even = 0; scanf("%d", &n); while (n) { if (n % 2 == 0) ...
2023-10-22
1
194
题解 | #计算一元二次方程#
#include <stdio.h> #include<math.h> int main() { float a = 0.0f, b = 0.0f, c = 0.0f, delta = 0.0f, x1 = 0.0f, x2 = 0.0f; while (~s...
2023-10-21
1
288
题解 | #简单计算器#
#include <stdio.h> int main() { double a = 0.0, b = 0.0; char c = 0; scanf("%lf%c%lf", &a, &c, &b); if (c != '+' &am...
2023-10-21
1
227
题解 | #kiki算数#
#include <stdio.h> int main() { int a = 0, b = 0, sum = 0; scanf("%d%d", &a, &b); if (a >= 100) a = a % 100; else ...
2023-10-21
1
244
题解 | #kiki算数#
#include <stdio.h> #include<math.h> int main() { int a = 0, b = 0, a1 = 0, b1 = 0, i = 0, tem = 0, result = 0, sum = 0; scanf(&quo...
2023-10-21
1
228
题解 | #小乐乐改数字#
#include <stdio.h> #include<math.h> int main() { int n = 0, tem = 0, sum = 0, i = 0; scanf("%d", &n); while (n) //n的值为0时...
2023-10-21
1
221
题解 | #小乐乐与欧几里得#
#include <stdio.h> int main() { long n = 0, m = 0, remainder = 0, max = 0, min = 0; //使用long类型变量,避免数据溢出 scanf("%ld%ld&quo...
2023-10-21
1
207
题解 | #小乐乐与欧几里得#
#include <stdio.h> //更相减损法 int main() { long long n = 0, m = 0, i = 1, max = 0, min = 0; //使用long long类型变量,不然数据会溢出 scanf(...
2023-10-21
1
224
题解 | #获得月份天数#
#include <stdio.h> int main() { int year, mon; while (~scanf("%4d%2d", &year, &mon)) { switch (mon) { case 1: case 3...
2023-10-20
1
179
首页
上一页
1
2
3
4
5
下一页
末页