摘要:
1009 Product of Polynomials 解题思路:多项式相乘 #include<iostream> #include<cstdio> using namespace std; int main(){ int k1,a1[20]; double d1[20]; cin>>k1; for 阅读全文
摘要:
1005 Spell It Right 1.以下代码有两个错误提交,考虑到可能是整形溢出 #include<iostream> #include<cstring> using namespace std; int main(){ int n;cin>>n; int sum=0; while(n){ 阅读全文
摘要:
1001 A+B Format (解题思路):利用数组存取每一位,当数组的下标是3的倍数的时候额外输出一个',' #include<iostream> #include<vector> using namespace std; int main(){ int a,b; cin>>a>>b; int 阅读全文
摘要:
1、冒泡排序 class Solution { public: string minNumber(vector<int>& nums) { int len = nums.size(); for (int i = 0; i < len - 1; i++){ bool isSort = true; fo 阅读全文