题解列表
编写题解 1072: 汽水瓶java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
2851: 合法C标识符(C语言)
摘要: #include
#include
int main()
{
char a[100];
scanf("%s",a);
int n=strlen(a);
int p……
为什么不初始化就通不过
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[101] = {'\……
简单算术表达式求值(整点花活,三目运算符)
摘要:参考代码:
```c
#include
int main()
{
int a;
char c;
int b;
scanf("%d%c%d",&a,&c,&b);
int d……
1025: [编程入门]数组插入处理(C++)
摘要:解题思路:一般前序遍历加后续遍历再插中,初始插头照顾值为最小的情况,比较为最大值则加在尾部参考代码://数组插入处理
#include<iostream>
using namespace std;……
一个二维数组搞定最大子矩阵
摘要:解题思路:1.设一个足够大的二维数组2.从[1][1]开始向右下累加,使每个位置表示其左上方(包括该位置本身的数)的和3.四重for循环(前两重与后两重代表两个指针,指示矩阵的左上角和右下角)4.利用……