2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:s = 0 n = int(input()) l = list(map(int,input().split())) for i in l: a = i %…… 题解列表 2023年02月21日 0 点赞 0 评论 257 浏览 评分:9.9
给用Java的开拓一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月19日 0 点赞 0 评论 191 浏览 评分:9.9
题解 2816: 统计满足条件的4位数个数 摘要:解题思路:先定义并输入n个数,再定义sum=0,再写循环并在循环里求出四位的数,再让他们进行运算,如果大于零就累加sum,最后输出sum。注意事项:要定义sum=0。参考代码:#include <bi…… 题解列表 2024年01月11日 0 点赞 0 评论 191 浏览 评分:8.0
2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,a,ans=0; cin …… 题解列表 2024年01月13日 0 点赞 0 评论 93 浏览 评分:6.0
统计满足条件的4位数个数 摘要:参考代码: ```c #include int main() { int n,k=0;//k是累计符合条件的数 scanf("%d",&n); int a; for(int i…… 题解列表 2023年09月14日 0 点赞 0 评论 208 浏览 评分:2.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 109 浏览 评分:0.0
2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:n=int(input())a=[0]*na=list(map(str,input().split()))t=0def judgetrue(x): if int(i…… 题解列表 2024年07月06日 0 点赞 0 评论 94 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int i,c=0,n;scanf("%d",&n);int a[n];for(i=0;i<n;i++){scan…… 题解列表 2023年07月12日 0 点赞 0 评论 180 浏览 评分:0.0
2816: 统计满足条件的4位数个数 摘要:``` #include using namespace std; int n,x,g,s,b,q,sum; int main(){ cin>>n; for( int i=1; i>x…… 题解列表 2023年11月08日 0 点赞 0 评论 139 浏览 评分:0.0
2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int arr[101]; int n…… 题解列表 2024年01月02日 0 点赞 0 评论 91 浏览 评分:0.0