题解列表

筛选

Minesweeper (C++代码)

摘要:解题思路:输入时给result赋初值为0,然后遍历map,遇见*时更新result注意事项:参考代码:#include<iostream>#include<cstdio>using namespace……

P1003 (C++代码)

摘要:解题思路:注意事项:参考代码:// 动态实现数组.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include<vector>u……

蛇行矩阵 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.*; import java.math.*; public class Main { public static void ma……

字符串的输入输出处理 (Java代码)

摘要:解题思路:注意事项:要注意的是,int n=sc.nextInt();后的&#39;\n&#39;会被输入进字符数组中,所以才会打印出一行空行,再打印结果,所以才会出现格式错误。参考代码:import……