题解列表
[编程入门]二维数组的转置
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]={0},b[3][3]={0}; //输入a[][] for(int ……
简单易懂 数字逆序输出
摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int a[10]={0}; for(int i=0;i<10;i++){ scanf("%d……
#C++2609——蓝桥杯2021年第十二届省赛真题-时间显示
摘要:解题思路:把毫秒转换成秒数,用时分秒之间的关系进行转换;注意事项:注意不足两位的时间是需要用0填充的,eg:12:00:06 ;参考代码:#include <iostream>
#include……
数字组合(动态规划)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1001] = {0};int a[20];int main(){ ……
#C++1367——Dinner
摘要:解题思路: 题意是如果遇到,“bowl, knife, fork , chopsticks”这几个单词 ,就输出它们。注意事项: 注意单词的开头和末尾(没有空格)参考代码:#include <cst……
#C++1236——母牛生小牛(回溯递归)
摘要:解题思路: 回溯法递归注意事项: 注意对核心递归公式f(n)=f(n-1)+f(n-3)的理解参考代码:#include <iostream>
#include <cmath>
using nam……
大小写转换-Java
摘要:参考代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args) ……
编写题解 2002: 计算数字个数(py)
摘要:解题思路:直接用到字符串的isdigit()对输入的字符串单个对比,然后把结果存到一个列表中,再使用len()函数求列表的长度输出注意事项:参考代码:print(len([i for i in inp……