题解列表
简单模拟 # 2576: 蓝桥杯2020年第十一届省赛真题-解码
摘要:```
#define _CRT_SECURE_NO_WARNINGS 1
#include
#include
#include
#include
#include
#include
……
信息学奥赛一本通T1589-不要 62 数位dp
摘要: #include
using namespace std;
int l,r;
int f[11][11];
void init(){
……
3行解决,使用count计数函数
摘要:解题思路:用count函数读取空格数量,再存入变量b,在加1完成注意事项:参考代码:# 1505a = input()b = a.count(" ",0,len(a)) + 1print(b)……
信息学奥赛一本通T1173-阶乘和--运用高精度乘法与加法:计算n的阶乘和
摘要:解题思路:因为n<=50;当n>20最大存储整数类型long long也存储不下,导致造成数据溢出。所以运用高精度乘法与加法计算n的阶乘和参考代码:#include <iostream>#includ……
编写题解 2777: 计算2的幂
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,p=0; scanf("%d",&n); p=pow(2,n)……
循环+一维数组解决水仙花
摘要:解题思路:分割出每一位数,求立方和,相加跟原数比较注意事项:***0,1不算,要从2开始遍历****注意刷新和(res),数组序号i参考代码:#include <stdio.h> int main()……