题解列表

筛选

c++打印图案代码

摘要:解题思路:格式化输出就好了。注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){printf("  *\n");print……

校门外的树 c++

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int L,M; cin>>L>>M; bool a[L+1]={f……

无敌巨简单版本,一个公式解决!!!

摘要:解题思路:直接上公式了:输入 a,b买不到的最大数目就是 a*b-a-b;借鉴了一下一位大佬的解释,尝试理解吧用题目中给出的7和4来举例,当一个数k<7时,只能用4,除了4其他的都无法组成;当7<k<……

买不到的数目

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