题解列表

筛选

while循环的简单使用

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int x(int n) {    int sum = 0;    if (n < 2) return 0;     while (n……

绝望中诞生的奇迹战士!

摘要:解题思路:                                     如果字符不相同取删除,修改,插入的最小值加1                          &n

直接输入然后输出

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[10];    int i;    for(i=0;i<10;i++){        sca……

简单易想到

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a[],int m,int n){ int b[n],i,j=0; for(i=n-m;i<n;i++){ ……

光越是强大,影就越浓重。

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量,r和c分别表示行数和列数,a数组存储矩阵元素,kk数组用……

采药 , 结构求解,简单

摘要:解题思路:注意事项:参考代码:#include <stdlib.h>struct Medicine{ int time; int value;};int main(){ struct Medicine……

如果不想在最后多输出一个空格

摘要:解题思路:如果用光标扫输出样例时会发现最后一个数后面没有空格。打印到倒数第二个数组元素就停止,然后单独打印最后一个。注意事项:参考代码:#include<stdio.h>int main(){    ……