优质题解 【C语言】十六进制转八进制:利用位运算的处理方式 - DotcppXF 摘要:【解题思路】 ① 首先题目输入要求每个十六进制数长度不超过100000,注意是“长度”不是“大小”,所以没办法直接用%x和%o来进行输入输出了; ② 这题需要进行大数的进制…… 题解列表 2022年09月27日 1 点赞 0 评论 1708 浏览 评分:9.9
超简单解法 摘要:解题思路:将输出的顺序改变,将横向输入改成竖向输出注意事项:参考代码:#include<stdio.h>int main() { int a[3][3], x, y; for (x = 0; x < …… 题解列表 2022年09月28日 0 点赞 0 评论 393 浏览 评分:9.9
等差数列的求解 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); for(int i=2;;i+…… 题解列表 2022年09月28日 0 点赞 0 评论 381 浏览 评分:9.9
【Java】100以内的素数 摘要: ```java import java.util.Scanner; //素数是除了1和其本身外不被其他整除的数 public class Main { …… 题解列表 2022年09月28日 0 点赞 0 评论 606 浏览 评分:9.9
优质题解 【C语言】阶乘新问题:从暴力超时到精简代码 - DotcppXF 摘要:【解题思路】 ① 末尾有多少个0的问题首先会想到10,一个数乘以10末尾就会多一个0,但直接统计10出现的次数显然不对; ② 事实上10是由5*2得来的,我们也能很快发现5…… 题解列表 2022年09月29日 0 点赞 0 评论 850 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d",&N); int a[N][N]; int main…… 题解列表 2022年09月29日 0 点赞 1 评论 389 浏览 评分:9.9
纯列表解题 摘要:解题思路:注意事项:参考代码:def f(): n=eval(input()) m=eval(input()) max_n=sum([9 for i in range(len(str…… 题解列表 2022年09月30日 0 点赞 1 评论 1434 浏览 评分:9.9
编写题解 2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define n 5int main(){ int a[100][100] = {0}; int row = 0…… 题解列表 2022年09月30日 0 点赞 0 评论 1298 浏览 评分:9.9
简单的a+b 十分简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ cout<<a…… 题解列表 2022年09月30日 0 点赞 0 评论 644 浏览 评分:9.9
1084 用筛法求之N内的素数 C语言常规思路+素数表优化 摘要:###### 原题链接:[https://www.dotcpp.com/oj/problem1084.html][https://www.dotcpp.com/oj/problem1084.html]…… 题解列表 2022年10月01日 0 点赞 0 评论 415 浏览 评分:9.9