题解列表

筛选

纸张尺寸(python硬核解法)

摘要:解题思路:给定了初始纸张的尺寸,后面按照思路一步一步来就行,直接看注释参考代码:import math    #因为题目要求向下取整,所以要导入math模块 p = list(input())……

【基础】思维数字的处理与判断

摘要:解题思路:按照题目给的限制不超过5位数进行解答可以使用if-else if进行解答先给定范围判断为几位数,得出结论后进行单个数字拆解,最后做一个逆序输出即可按照小白入门解法代码较多且比较磨人注意事项:……

C++代码实现

摘要:解题思路:sort排序,C++代码实现注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace st……

直接格式输出

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

2880: 计算鞍点

摘要:``` #include using namespace std; const int N=1000,M=100000; int a[N][N],dx[6],dy[6]; int main(……

遍历三位数暴力解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    for(int i=100;i<1000;i++)    {        int k=i;       ……

要用long long

摘要:解题思路:注意事项:参考代码:#include<stdio.h>long long cal(int i){    if(i==1)    {        return 1;    }else{   ……

2909: 直方图 C++

摘要:解题思路:注意事项:const int  常量(不会改变)cnt[a[i]]      cnt    数量参考代码:#include<bits/stdc++.h>using namespace std……