题解列表
最简介易懂示例!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 200int main(){ int n,i,num; int arr[N]; while(sca……
2913: 整数去重(C语言)
摘要: #include
int main() {
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; ……
2853: 字符替换(C语言)
摘要: #include
int main()
{
char a[59];
char m,n;
scanf("%s %c %c",a,&m,&n);
int str_le……
自然数的拆分(dfs)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstring>
using namespace std;
const int N=10010;
int ……
运行时间过长(半天跑不出数)的看过来!!!
摘要:解题思路: 在CPU频率中,1GHz 就是每秒10亿次运算,你可以算一算自己CPU运算速度。 但是你若在写代码的过程中——比如说这道题——使用了三重嵌套for循环,那么就是……
信息学奥赛一本通T1176-谁考了第k名-题解(C语言代码排序)
摘要:解题思路:排序注意事项:参考代码:#include <stdio.h>struct stud{ char num[20]; float fen;}stu[1000],t;int main ……
C++ 字符串分类统计
摘要: #include //这是个非常万能的头文件
using namespace std;
int main()
{
int y = 0,s = 0,k = 0,q = 0;?//需……
3000-交换值的通解方法
摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner scann……