摘要:
画图就是。。找。。规。。律 #include <iostream>using namespace std;int main(){ int T; cin>>T; while(T--) {int n; int width=1; int lowHeight; char r; cin>>r>>n; widt 阅读全文
摘要:
动态规划 方程 #include <iostream>#include <iomanip>#include <cmath>#include <algorithm>#include <windows.h>using namespace std;long a[10010],b[10010],f[1001 阅读全文
摘要:
#include <iostream>#include <cmath>using namespace std; int _gcd(int x,int y){ return y==0?x:_gcd(y,x%y);} void main(){ int T,x0,y0,n; cin>>T; while(T 阅读全文
摘要:
N进制下的加法 2/10/16进制下,char到int的转换 #include<iostream>#include<string>using namespace std;string str;int step = 1;int n;int m;int a[10001];int b[10001];voi 阅读全文
摘要:
#include<iostream>#include<string>#include<cctype>using namespace std;int main() { string str; cin >> str; int key = 0; int m = 0; for (int i = 0; i < 阅读全文
摘要:
学习<algorithm>下的reverse函数 #include<iostream> #include<string> #include<algorithm> using namespace std;int n;bool judge(string s1, string s2, string s3) 阅读全文
摘要:
注意数组越界。#include<iostream> #include<cmath> using namespace std; char letter[10001]; void Output(int cap,int type) { int w = 0, l = 0; for (int i = 0; i 阅读全文
摘要:
#include<iostream> using namespace std; int main() { int n; int sum = 0; int num[200]; cin >> n; if (n >= 3 && n <= 100) { for (int a = 0; a < n; a++) 阅读全文
摘要:
自答:23ms 500.0 KiB #include<iostream>#include<string>using namespace std;class student {public: string name; int averMark; int classMark; char cadre; c 阅读全文
摘要:
自答【119ms内存456.0 KiB】 #include<iostream>using namespace std;int num = 0;void judge(int n, int x) { int t = n % 10; if (n != 0 || t != 0) if (x == t || 阅读全文