Java语言找规律轻松解决 #找规律即可**N=3**print:424**N=4**print:6446**N=5**print:86468importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newS 题解列表 2022年08月10日 0 点赞 0 评论 746 浏览 评分:0.0
水仙花数--问题1--C语言 摘要:解题思路:本题使用的是数组以及求出各数字的组成注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int num = 0; int i; in…… 题解列表 2022年08月10日 0 点赞 1 评论 1023 浏览 评分:0.0
平均值计算以及求大于平均数的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int num[10]; int i, n, j = 0; int average = 0; int sum …… 题解列表 2022年08月10日 0 点赞 0 评论 573 浏览 评分:0.0
编写题解 1036: [编程入门]带参数宏定义练习 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int exchange(int m,int n) { int t; t=m;//交换 …… 题解列表 2022年08月10日 0 点赞 0 评论 576 浏览 评分:0.0
编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int tongji(char a[]) { int m,n,x,y; …… 题解列表 2022年08月10日 0 点赞 0 评论 747 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:用一个数组存放四位数的各个位上的数,再逆序输出注意事项:参考代码:#include <stdio.h> int kongge(int a) { int b[4]; …… 题解列表 2022年08月10日 0 点赞 0 评论 484 浏览 评分:0.0
不会简单的写法 解题思路:注意事项:参考代码:a=list(map(int,input().split()))b=list(map(int,input().split()))c=0d=0e=0foriina:ifi>=0:d+=ie+=1else:c+=1foriinb:ifi>=0:d+=ie+=1else:c+= 题解列表 2022年08月10日 0 点赞 0 评论 689 浏览 评分:9.9
这种题还需要看题解吗? 摘要:解题思路:就循环注意事项:参考代码:for i in range(10,1001): if i%2==0 and i%3==0 and i%7==0: print(i)…… 题解列表 2022年08月10日 0 点赞 0 评论 798 浏览 评分:9.9
期望dp与乘法逆元 摘要:解题思路:简单的期望dp注意事项:乘法一定要防止long long越界参考代码:#include<bits/stdc++.h>//这道题自己曾经不会期望dp,不会逆元,所以考场做不出来。//现在自己靠…… 题解列表 2022年08月09日 0 点赞 1 评论 2349 浏览 评分:5.1
守望者的逃离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,s,t;//魔法初值m,初始位置与岛的出口之间的距离s,岛沉没的时间t。 scanf("%d %d …… 题解列表 2022年08月09日 0 点赞 0 评论 560 浏览 评分:0.0