题解列表

筛选

隨隨便便写一写,我尽量解释清楚这一题我为什么要这么写代码,这是我目前能想到的最详细的解读过程了

解题思路:第一年年底,房价200万,第一年一整年下来,他手头上有了N万;第二年年底,房价200*(1+K*0.01)万【从数学上来说,百分号K可以等于K*0.01】,他今年工资一共N万,加上去年一整年的工资,他手头上有了2*N万;第三年年底,

多种方法,不使用数组也行

有多种解法,可以先排序,然后直接首尾相减```c#include#includeintcmp(constvoid*a,constvoid*b){return*(int*)a-*(int*)b;}intmain(){intn;scanf("%d",

高精度加法

摘要:#include"bits/stdc++.h" using namespace std; int main(){     string a1,a2;     int b1[20000],b2[……

高精度减法

摘要:#include"bits/stdc++.h" using namespace std; int main(){     string s1,s2;     int a1[1000]={0},……

2858: 整理药名

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() {    char a[100][100]; // 定义一个二维数组来存储……

看题解的置顶代码的

摘要:解题思路:只是为了记录代码,方便查阅注意事项:参考代码:#include<stdio.h>#include<stdlib.h>//创建一个管理结构体typedef struct student{   ……

高精度乘法

摘要:#include"bits/stdc++.h" using namespace std; int main(){     string s1,s2;     int a1[100000],a2……

逆天解法,包得吃的。

摘要:解题思路:注意事项:自己看参考代码:#include<stdio.h> int main(){ int arr[101],i,j,a,b,c; for(i=0;i<100;i++) { arr[i]……

找第一个只出现一次的字符

摘要:解题思路:写题解代码只是为了自己查看,无严谨性注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char s[100000];  ……