题解列表

筛选

利用类型转换解Hello, world!

摘要:解题思路:利用char,把int类型转换为char类型即可注意事项:参考代码:#include<iostream>using namespace std;int main(){int a = 0;wh……

A+B for Input-Output Practice (I)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int a,b;   while(cin>>a>>b)   cou……

1290: 奶牛的锻炼

摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){    //d[i]代表第i分钟可以跑的路程    ……

数的划分(深搜)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n, m, ans; void dfs(int k,int s……

2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸

摘要:解题思路:               在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个……

C语言最简单易懂的01背包解法

摘要:解题思路:注意事项:参考代码:// DP动态规划  01背包#include<stdio.h>int main(){    int N, m, v[25], p[25], dp[30000] = { ……

编写题解 2779: 输出绝对值,python超简单

摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数&#39;%.2f&#39; % abs(N)……

LETTERS(经典DFS)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷……