题解列表

筛选

[编程入门]成绩评定

摘要:解题思路:注意事项:参考代码:x=int(input())if x>=0 and x<60:    print("E")elif x>=60 and x<70:    print("D")elif x……

【Python题解】姜太公钓鱼

摘要:参考代码:n = int(input()) lis = list(map(int, input().split())) count = 0 for i in lis:     if i <= ……

【Python题解】程序员爬楼梯

摘要:解题思路:简单的动态规划。参考代码:n = int(input()) dp = [1 for i in range(n+1)]     # 边界条件:dp[0]=dp[1]=dp[2]=1 fo……

C++简便易懂

摘要:# 其实这题直接点提交就行了 ``` #include using namespace std; int main() { int a,b; while(cin>>a>>……

C语言训练-求车速

摘要:解题思路:注意事项:其实还应该求速度但是答案仿佛忘了这一问如果该答案了应该加上 int speed; speed = (num - 95859) / 2;然后把两个数都打印出来参考代码:#incl……

三角形判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int a,b,c;     scanf("%d%d%d",&a,&b,&c);     if(a+b>……

2778: 判断数正负

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int N;    scanf("%d",&N);    if(N>0)    printf("posit……

2003基础解法(Python)

摘要:解题思路:内置函数即可注意事项:题目介绍具有误导性,输入十个字符是指读取前十个字符,而非原输入只有十个字符,isnumeric()改成isalnum(),不然其实存在错误的情形参考代码:string ……