题解列表

筛选

二级C语言-分段函数

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main(){ double x,y; cin>……

二级C语言-温度转换

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main(){ double m,n; cin>……

用字符切片来解决

摘要:解题思路:注意事项:参考代码:n = int(input())x = str(input())m = int(input())print(x[m-1:])……

1001: [编程入门]第一个HelloWorld程序

摘要:解题思路:这题并不是很难,考察细心程度。我们可以先定义一个输出*的函数后调用。注意事项:注意一定要看清题目要求的输出,注意细节,参考代码:#include<stdio.h>void fun(){ fo……

用最基础的知识解决这道题

摘要:解题思路:用最基础的方法来求每一位的数字是什么,依次输出就可以了参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,c,d……

1140不可投机取巧

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a, b, c, d;    int i;    for (i = 95860 ; i <= 99……

[编程入门]实数的打印

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){    float num;                  //定义数字,类型为 float