C语言 自定义函数之整数处理& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 10 //改变Long的大小能输入更多的数并实现该功能int main(){ …… 题解列表 2022年11月26日 0 点赞 0 评论 385 浏览 评分:0.0
题目 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int x,y; x=n; …… 题解列表 2022年11月26日 0 点赞 0 评论 636 浏览 评分:9.9
C++三目超简 摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de…… 题解列表 2022年11月26日 0 点赞 0 评论 655 浏览 评分:7.3
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:import mathn, x, y = map(int,input().strip().split())print(math.floor(n - y / x)) …… 题解列表 2022年11月26日 0 点赞 0 评论 718 浏览 评分:4.7
1013: [编程入门]Sn的公式求和(java代码) 摘要:解题思路:解法一:根据规律发现每一项数字都是前面一项的10倍+2(2,20+2, 220+2,.....)。解法二:把每一项数字拆开(2*100,(2*100+2*101),(2*100+2*101+…… 题解列表 2022年11月26日 0 点赞 0 评论 605 浏览 评分:0.0
C语言简便方法解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[256][101] = { 0 }; int a, b; …… 题解列表 2022年11月26日 1 点赞 0 评论 849 浏览 评分:9.9
蓝桥杯兰顿蚂蚁 摘要:```java package 蓝桥杯刷题; import java.util.Scanner; public class 兰顿蚂蚁 { public static void m…… 题解列表 2022年11月26日 0 点赞 0 评论 493 浏览 评分:9.9
结构体之成绩统计 摘要:解题思路:注意事项:参考代码:n=int(input())sn=a=b=c=0d=[]for i in range(n): lis=input().split() if int(lis[-…… 题解列表 2022年11月26日 0 点赞 0 评论 417 浏览 评分:0.0
哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:x=list(map(int,input().split()))x.sort(reverse=True)for i in x: print(i,end=' …… 题解列表 2022年11月25日 0 点赞 0 评论 451 浏览 评分:7.3
for循坏简简单单解决 2808 摘要:解题思路:注意事项:参考代码:#includeint main(){ int N,K; double s=200; scanf("%d%d",&N,&K); for(i…… 题解列表 2022年11月25日 0 点赞 0 评论 789 浏览 评分:8.3