题解列表

筛选

字符逆序(怀氏C++)

摘要:#include<iostream> using namespace std; #include<algorithm> int main() {     string s;     get……

“扮猪吃老虎”题

摘要:解题思路:题目看起来很难,其实不要别它迷惑了,每一行第一个数是后面输入数字的个数,先接受一个这个数,如果等于0结束,不等于0的话继续接收数据,很简单的注意事项:这个题并不能实现输入几行数据,再返回结果……

简单的fot循环语句即可

摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(void){ int a,n,i; int Sn; scanf("%d", &n); a = 0; Sn = 0;……

编写题解 2942: 机器翻译

摘要:解题思路:看代码注解注意事项:注意word参考代码#include<stdio.h>int main(){    //输入函数 int n,m,i,j; int a;//把a定义成一个数组反而就出现错……

2种方法写题解

摘要:解题思路:注意事项:参考代码:a= input()k=0for i in a:    if 47<ord(i) and ord(i)<58:  #ASCII码判断是不是数字        k+=1pr……

思路简单的c语言啊

摘要:1,原题链接:[修建灌木](https://www.dotcpp.com/oj/problem2657.html "修建灌木") 2,解题思路: 由题意容易找寻规律,若灌木每天从早上到……