题解列表

筛选

1045: [编程入门]自定义函数之整数处理

摘要:```cpp #include using namespace std; /* 题目描述 输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入……

@更向天涯 小李子不行啊!!!

摘要:解题思路:注意事项:cin、cout一定要改成scanf和printf不然会超时!!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10……

2826: 雇佣兵(python)

摘要:解题思路:注意事项:参考代码:from decimal import * M,N,X = map(int,input().split()) while X > 0 and X * N >= M: ……

1046: [编程入门]自定义函数之数字后移

摘要:```cpp #include using namespace std; /* 题目描述 有n个整数,使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中……

2864: 单词替换 STL版

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <sstream> // #include <cstdio> // #include <algorithm……

我觉得比楼上写的还简单^_^

摘要:解题思路:注意事项:参考代码:#include <iostream> // #include <sstream> // #include <cstdio> // #include <algori……

2867: 单词的长度 c++简洁版

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() {     boo……