尤姆
尤姆
全部文章
分类
归档
标签
去牛客网
登录
/
注册
尤姆的博客
全部文章
(共48篇)
题解 | #找最小数#
#include<cstdio> #include<algorithm> using namespace std; struct num{ int x; int y; }; bool ans(num rhs, num lhs){ if (rhs.x > lhs.x...
2023-03-03
0
209
题解 | #数字阶梯求和#
#include<cstdio> #include<vector> using namespace std; int main(){ int a, n; while (scanf("%d %d", &a, &n) != EOF){ vector<int> ...
2023-03-03
0
315
题解 | #数字反转#
#include<stdio.h> int reverse(int n){ int m=0; while (n != 0){ m = m * 10 + n % 10; n = n / 10; } return m; } int main(){ int a, b; wh...
2023-03-02
0
238
题解 | #鸡兔同笼#
#include<cstdio> int main(){ int n; while (scanf("%d", &n) != EOF){ if (n % 2 == 1){ printf("0 0\n"); } else{ int min,max; max ...
2023-03-02
0
241
题解 | #数制转换#
#include<cstdio> #include<cmath> #include<map> #include<stack> using namespace std; int main(){ int a,b; char s[20]; while ...
2023-03-02
0
261
题解 | #又一版 A+B#
#include<cstdio> #include<stack> using namespace std; int main(){ long long m, a, b; while (scanf("%lld %lld %lld", &m, &a, &b) != EOF){...
2023-03-02
0
218
题解 | #还是A+B#
#include<cstdio> int main(){ int a, b, k; while (scanf("%d %d %d", &a, &b, &k) != EOF){ if (a == 0&&b==0){ break; } int x = a, y = b,...
2023-03-02
0
232
题解 | #xxx定律#
#include<cstdio> int main(){ int n; while (scanf("%d", &n) != EOF){ int k = 0; if (n == 1){ printf("0"); } else{ while (n != 1){...
2023-03-02
0
213
题解 | #日期差值#
#include<cstdio> bool isrun(int s){ if (s % 400 == 0 || s % 100 != 0 && s % 4 == 0){ return true; } else{ return false; } } int cal(int ...
2023-03-02
0
237
题解 | #数字求和#
#include<cstdio> int main(){ int a, s[5]; while (scanf("%d %d %d %d %d %d", &a, &s[0], &s[1], &s[2], &s[3], &s[4]) != EOF){ int sum=0; for...
2023-03-02
0
247
首页
上一页
1
2
3
4
5
下一页
末页