python50%错误 摘要:解题思路:不知道错在哪里注意事项:参考代码:a = input().split()b = []for i in a: if 65 <= ord(i) <= 90 or 97 <= ord(i) …… 题解列表 2021年12月14日 0 点赞 1 评论 241 浏览 评分:0.0
编写题解 2004: 统计成绩 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i…… 题解列表 2021年12月14日 0 点赞 0 评论 312 浏览 评分:0.0
C++求1+2!+3!+...+N!的和 摘要:两次解决第一次是int类型,导致越界 改成long long 即可 ```cpp #include using namespace std; typedef long long ll;…… 题解列表 2021年12月14日 0 点赞 0 评论 515 浏览 评分:0.0
偶数求和(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; while (~scanf("%d%d", &n, &m)) { int i, sum =…… 题解列表 2021年12月15日 0 点赞 0 评论 500 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:把.作为分隔,分别判断字符串是不是属于0-255注意事项:参考代码:while True: try: n = input() ls=[] if…… 题解列表 2021年12月15日 0 点赞 0 评论 524 浏览 评分:0.0
编写题解 1084: 用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码:n = int(input())ls = []for i in range(2,n+1): for j in range(2,i): if i%j =…… 题解列表 2021年12月15日 0 点赞 0 评论 400 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:n = int(input())ls = [1]for i in range(2,n+1): ls.append(ls[-1]*i)print(sum(ls))…… 题解列表 2021年12月15日 0 点赞 0 评论 492 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:用字符相乘注意事项:参考代码:m,n = map(str,input().split())ls = []for i in range(1,int(n)+1): ls.append(m*…… 题解列表 2021年12月15日 0 点赞 0 评论 498 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:ls = []for i in map(str,range(999,10000)): if (int(i[:2])+int(i[2:]))**2 == int(i)…… 题解列表 2021年12月15日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:n =int(input())ls = [10]for i in range(n): ls.append(ls[-1]+2)print(ls[-2])…… 题解列表 2021年12月15日 0 点赞 0 评论 387 浏览 评分:0.0