题解列表

筛选

1042: [编程入门]电报加密

摘要:#此题和上一题类似,也需要接收空格,同时还需要进行字母加密,难度稍高。 ```cpp #include #include #include using namespace std; /……

2839: 石头剪刀布(Python)

摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma……

 编写题解 2788: 晶晶赴约会

摘要:解题思路:用if语句借此题注意事项:只是1,3,5输出No,6,7也输出yes参考代码:#include<iostream>using namespace std;int main(){    int……

前缀和 + 二分

摘要:# 前缀和 + 二分 先看测试数据范围 10^5, 暴力会TLE。 先将每个人刷题的数量保存,并且更新最多刷题数量 `sum[i]`来存放刷题数目不超过i个人数, 因此可以得到……

C语言链表解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct Link{ int data; struct Link *next; }Link; //循……

记录解题过程。

摘要:解题思路:  注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    double x1, x2,x3,x4;    d……

简单点有规律的数列求和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float n=2.0,z=1.0;    float s=0;    int N;    scanf("……

简单易懂!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[25],str2[25]; gets(str); char……