题解列表
1043: [编程入门]三个数字的排序
摘要:解题思路:因为数字很少(3个),所以写了一个冒泡排序,接收数组的指针和数组长度,给数组排序,之后正常打印数组即可。注意事项:冒泡排序的原理是在每一轮循环中,对数组的成员两两比较,这样能保证每一轮循环都……
1686: 数据结构-定位子串
摘要:解题思路:注意事项:参考代码:while True:
try:
a,b=input().split()
print(a.find(b)+1)
e……
二级C语言-成绩归类
摘要:```cpp
#include
using namespace std;
int main()
{
int a[200]={0}; //初始化
int b=0,c=0,d……
二级C语言-阶乘公式求职
摘要:```cpp
#include
using namespace std;
double fact(double k){ //求阶乘
double w=1;
for(double……
A+B for Input-Output Practice (I)
摘要: ```cpp
#include
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
cout……
A+B for Input-Output Practice (II)
摘要:```cpp
#include
using namespace std;
int main()
{
int a,b,c;
cin>>c;
for(int i=1;i>a>>……
A+B for Input-Output Practice (III
摘要:```cpp
#include
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b){
if(a==0&……
字符串输入输出函数-题解
摘要:def GetReal(inpn):
print(inpn)
def GetString(inps):
print(inps)
def main():
inpn = ……
A+B for Input-Output Practice (IV)
摘要:```cpp
#include
using namespace std;
int main()
{
int a[100],b,n,sum;
while(cin>>n&&n!=0){
……