首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
开心的啤酒肚在看机会
获赞
0
粉丝
0
关注
0
看过 TA
0
海南大学
2023
Java
IP属地:湖北
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑开心的啤酒肚在看机会吗?
发布(5)
刷题
开心的啤酒肚在看机会
2023-03-18 13:59
Java
题解 | #Sum of Factorials#
#include <cstdio> using namespace std; int a[11]; int main() { a[0] = 1; //a[0]也要算进去! a[1] = 1; for (int i = 2; i < 11; i++) a[i] = a[i - 1] * i; int n; while (scanf("%d", &n) != EOF) { int t = n; for (int i = 10; i >= 0; i--) {//n!每两个数相隔大 故可此方...
0
点赞
评论
收藏
转发
开心的啤酒肚在看机会
2023-03-16 10:40
Java
题解 | #数字之和#
#include<cstdio> int sum(int x) { int sum = x % 10; while (x % 10 != x) { x /= 10; sum += x % 10; } return sum; } int main() { int x; while (scanf("%d", &x) != EOF) { printf("%d ", sum(x)); printf("%d\n", sum(x * x)); } return 0; ...
0
点赞
评论
收藏
转发
开心的啤酒肚在看机会
2023-03-16 10:27
Java
题解 | #找最小数#
#include<cstdio> #include<algorithm> using namespace std; struct pos{ int x; int y; }arr[1001]; bool comp(pos a,pos b){ if(a.x==b.x){ return a.y<=b.y; } return a.x<b.x; } int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++){ ...
0
点赞
评论
收藏
转发
开心的啤酒肚在看机会
2023-03-15 16:15
Java
题解 | #a+b#
#include<cstdio> int main() { int x, y; while (scanf("%d%d", &x, &y) != EOF) { printf("%d\n", x + y); } return 0; }
0
点赞
评论
收藏
转发
开心的啤酒肚在看机会
2023-03-15 15:31
Java
题解 | #小白鼠排队#
#include<cstdio> #include<string> #include<iostream> #include<algorithm> using namespace std; struct Mouse{ int weight; string color; }a[105]; bool comp(Mouse a,Mouse b){ return a.weight>b.weight; } int main(){ int n; scanf("%d",&n); for(int i=0;i&l...
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务