Forever清
Forever清
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Forever清的博客
全部文章
(共8篇)
题解 | 单组_spj判断数组之和
#include <stdio.h> int main() { int n,m; scanf("%d%d",&n,&m); int a=m/n; while (n--) { if (n==0) { ...
2025-03-06
0
30
题解 | 单组_spj判断浮点误差
#include <math.h> #include <stdio.h> int main() { int r; const double pai=acos(-1); scanf("%d",&r); printf(...
2025-03-06
0
23
题解 | 单组_spj判断YES与NO
#include <stdio.h> int main() { int n; scanf("%d",&n); if (n&1) { printf("YES"); }else { ...
2025-03-06
0
32
题解 | 多组_带空格的字符串_T组形式
#include <stdio.h> int main() { int t; scanf("%d",&t); int n; while (t--) { scanf("%d",&n);...
2025-03-06
0
32
题解 | 单组_字符串
#include <stdio.h> #include <stdlib.h> int main() { int a; scanf("%d",&a); char arr[a]; scanf("%s"...
2025-03-05
0
21
题解 | #字符的个数#
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int arr[3]{}; for (const aut...
2023-01-19
5
263
题解 | #获取数组最值#
#include <algorithm> #include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(in...
2023-01-17
0
238
题解 | #计算商品打折结算金额#
#include <iostream> #include <iomanip> using namespace std; int main() { double price; cin >> price; double cost ...
2023-01-16
0
254