题解列表

筛选

3008: 班长用班费买笔

摘要:解题思路:尽量买四元的笔剩1元,则4元钱的笔少买1支,换成1支5元笔;剩2元,则4元钱的笔少买1支,换成1支6元笔;剩3元,则4元钱的笔少买2支,换成1支5元笔和1支6元笔;注意事项:参考代码:#in……

1779: 你的第一个程序题解

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    cout << Just do IT" << endl;   ……

2749: Hello, World!题解

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){    cout << "Hello world!" << endl;    return ……

2749: Hello, World!

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

输出个数、各数、逆序

摘要:解题思路:事项:1、循环数个数 2、采用高到低位3、重新提取数字,然后逆序输出就行了参考代码:#include <stdio.h>int main() {    int n,a=0;    scanf……

3031: 分解因数

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #……

1017: [编程入门]完数的判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int i, j, n, sum;    cin >>……