题解列表

筛选

2749: Hello, World!

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

编写题解 3008: 买笔

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

期末来临了,班长小Q决定将剩余班费x元钱,用于购买若干支钢笔奖励给一些学习好、表现好的同学。已知商店里有三种钢笔,它们的单价为6元、5元和4元。小Q想买尽量多的笔(鼓励尽量多的同学),同时他又不想有剩

摘要:解题思路:优先买4元x/4=0  全买4元x/4=1  买1个5元x/4=2  买1个6元x/4=3  买1个5元 买1个6元注意事项:参考代码:#include <bits/stdc++.h>usi……

编写题解 2772: 苹果和虫子

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

编写题解 1764: 循环入门练习1

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int s=0;    for(int i=0;i<=1000;……

1764: 循环入门练习1题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int s=0;    for(int i=0;i<=1000;……

编写题解 2000: 偶数列举

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

2000: 偶数列举题解

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