编写题解 1116: IP判断 摘要:解题思路:把.作为分隔,分别判断字符串是不是属于0-255注意事项:参考代码:while True: try: n = input() ls=[] if…… 题解列表 2021年12月15日 0 点赞 0 评论 393 浏览 评分: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 评论 379 浏览 评分:0.0
又水水水水水。。。了一题 摘要:解题思路:加法最快,一直加到n/4,又1=4/4,2=(4+4)/4,3=4-4/4,所以模余一再加一,余二余三再加二注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2021年12月14日 0 点赞 0 评论 382 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差(C-不用排序代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[1001]; int fen[26]=…… 题解列表 2021年12月14日 0 点赞 0 评论 424 浏览 评分:9.9
1014: [编程入门]阶乘求和 摘要:解题思路:先搞清楚思路,再编程序注意事项:参考代码:n=int(input())Sn=0x=1for i in range(1,n+1): for j in range(1,n+1): …… 题解列表 2021年12月14日 0 点赞 2 评论 323 浏览 评分:8.0
适用新手代码 摘要:注意事项:1.题目说在所有的测试数据中,结果均不超过2.1*10^9所以long long用不了2.pow精度有问题过不了…… 题解列表 2021年12月14日 0 点赞 0 评论 333 浏览 评分:9.9
C++求1+2!+3!+...+N!的和 摘要:两次解决第一次是int类型,导致越界 改成long long 即可 ```cpp #include using namespace std; typedef long long ll;…… 题解列表 2021年12月14日 0 点赞 0 评论 404 浏览 评分: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 评论 205 浏览 评分:0.0
python50%错误 摘要:解题思路:不知道错在哪里注意事项:参考代码:a = input().split()b = []for i in a: if 65 <= ord(i) <= 90 or 97 <= ord(i) …… 题解列表 2021年12月14日 0 点赞 1 评论 180 浏览 评分:0.0
编写题解 1065: 二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10]; for…… 题解列表 2021年12月14日 0 点赞 0 评论 236 浏览 评分:0.0