题解列表

筛选

单词翻转(C++代码解析)

摘要:代码解析:首先,引入了必要的头文件,包括iostream、string和sstream。这些头文件分别用于输入输出操作、字符串处理和字符串流处理。接下来,定义了一个reverseWord函数,它接受一……

最长最短单词(C++代码解析)

摘要:代码解析:引入了必要的头文件,包括iostream、string和sstream和vector头文件用于使用向量容器。接下来,定义了一个getWords函数,该函数接受一个字符串sentence作为参……

1099: 校门外的树(简单c++)

摘要:解题思路:1.#include <bits/stdc++.h> using namespace std; long long a[100000];//创造数组 int main() {   ……

单词替换(优解)

摘要:解题思路:看下面↓注意事项:借鉴用,不要盲目的抄参考代码:#include<iostream>#include<cstring>using namespace std;int main(){   in……

2903: 不高兴的津津

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,c,maxday = 0,maxtime = 0;int main(){    for……

不高兴的津津

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int day=0,maxx=0;        f……

c语言代码解决问题

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