题解列表

筛选

最简单版本

摘要:解题思路:好吧,我承认我看题解了注意事项:无参考代码:#include<stdio.h>int main(){    int n,i,a[10],j;    for(i=0;i<9;i++){    ……

1220题解 C++ 序列有序 新思路

摘要:解题思路: 1.把数直接插入原序列的末尾 2.然后用sort函数对新序列进行排序后再输出 注意事项: 利用sort函数要加algorithm的头文件 参考代码: ```cpp #incl……

二级c语言--求素数-c++

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std; int isprime(int n){  int c=0;  if(n==1)return ……
优质题解

1093: 字符逆序

摘要:解题思路:(1)利用反向迭代器reverse_iterator:rbegin() 和 rend(),比如:string str1("1234567890"); string str2(str1.rb……