自定义函数数字后移,将数组传入函数---起岸希 摘要:#include<stdio.h> void change(int n,int a[], int b[],int m); int main() { int n,m; int a[100]…… 题解列表 2022年09月24日 0 点赞 0 评论 316 浏览 评分:0.0
1098——————陶陶摘苹果 摘要: n = list(map(int,input().split())) m = int(input())+30 s = 0 for i in n: …… 题解列表 2022年09月24日 1 点赞 0 评论 446 浏览 评分:0.0
bellman-ford(java) 摘要:参考代码:import java.util.*; public class Main { public static void main(String[] args) { Scanne…… 题解列表 2022年09月24日 0 点赞 0 评论 400 浏览 评分:0.0
字符串处理 摘要:解题思路:将n行前和第n行字符串分开处理,前半段用for循环+gets+puts输入输出,后半段利用scanf遇到空格即停止输入的特性扫描后半段,遇到单字带换行符打出,字符串则字符串打出注意事项:加入…… 题解列表 2022年09月24日 0 点赞 0 评论 305 浏览 评分:0.0
密码破译-Python 摘要:解题思路:输入一串字符串,遍历字符串的每一个字符,利用ascll码的相互转换注意事项:参考代码:str1 = input()for i in str1: print(chr(ord(i)+4),…… 题解列表 2022年09月24日 0 点赞 0 评论 439 浏览 评分:0.0
三个数求最大值 摘要:解题思路:1、用map输入三个数,再用sum函数求出最大值 2、用list把输入的三个数转化为列表,再用sort函数进行排序,输出最后一个数注意事项:参考代码:a,b,c =…… 题解列表 2022年09月24日 0 点赞 0 评论 495 浏览 评分:0.0
最大公约数。。 摘要:参考代码:import java.util.*; import java.math.*; public class Main { public static void main(String[…… 题解列表 2022年09月24日 0 点赞 0 评论 508 浏览 评分:0.0
小白题解 2901: 查找特定的值 摘要:解题思路:原本以为使用字符串可以解决了呢,没想到现实给我了一个大逼斗 无奈至极注意事项:参考代码:n = input()li = input().split()s = input()if s in l…… 题解列表 2022年09月25日 0 点赞 0 评论 727 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:**解题思路: 本题目标明确,要求将对应类型的字符统计起来并输出数量,那样的话,我们就需要定义两个数组,一个用于记录我们输入的字符串,另一个记录我们输出的目标数字。 **判定字符else if…… 题解列表 2022年09月25日 0 点赞 0 评论 354 浏览 评分:0.0
比较笨的题解(不用switch-case语句) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int score; scanf("%d",&score); if(score>=90) { printf("A…… 题解列表 2022年09月25日 0 点赞 0 评论 385 浏览 评分:0.0