2790: 分段函数 更简洁版本 摘要:解题思路:注意事项:参考代码:a=float(input())y=0if 0<=a<5: y=-a+2.5elif 5<=a<10: y=2-1.5*(a-3)*(a-3)elif 10<…… 题解列表 2023年11月18日 0 点赞 0 评论 309 浏览 评分:0.0
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 565 浏览 评分:9.9
hello,world题解! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"Hello,World!"; …… 题解列表 2023年11月18日 0 点赞 0 评论 456 浏览 评分:6.0
2789: 骑车与走路Python 摘要:解题思路:注意事项:参考代码:a=int(input())bike=(a/3)+27+23walk=a/1.2if bike>walk: print('Walk')elif bi…… 题解列表 2023年11月18日 0 点赞 0 评论 410 浏览 评分:6.0
治炼金属python题解 摘要:解题思路:注意事项:参考代码:N=int(input())V1 = []V2 = []for i in range(N): A,B=map(int,input().split()) V1.…… 题解列表 2023年11月18日 0 点赞 1 评论 623 浏览 评分:9.9
[编程入门]报数问题,Java用递归的思想,将数组模拟成一个圈 摘要:解题思路:循环实现,将数组模拟成一个圈注意事项:大佬帮忙看看优化,指正思路;参考代码:import java.util.Scanner;public class Demo01 { public …… 题解列表 2023年11月18日 0 点赞 0 评论 357 浏览 评分:9.9
希望大哥们指点指点 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyueshu(int min,int a,int b){ int gongyue; for(int i=mi…… 题解列表 2023年11月17日 0 点赞 0 评论 278 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[111],b[111];int main(){ int n,m; scanf("%d",&n); …… 题解列表 2023年11月17日 0 点赞 0 评论 195 浏览 评分:0.0
一个不错的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum=0; int a; scanf("%d",&a); for(int i=1;i<a;i++) …… 题解列表 2023年11月17日 0 点赞 0 评论 298 浏览 评分:0.0
没有比我更简单的了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d\n",&x); int a; scanf("%d",&a); int sum=…… 题解列表 2023年11月17日 0 点赞 0 评论 274 浏览 评分:0.0