摘要:
#include<bits/stdc++.h> using namespace std; //p表示的序列是否比q表示的序列字典序小 int less(const char* s,int p,int q) { int n=strlen(s); for(int i=0; i<n; i++) { if( 阅读全文
摘要:
我的思路是从后面开始遍历整个数组。 从前面开始遍历的话,有一个公式需要掌握: t=0; t=t*10+(c[i]-'0'); 实现数字的处理。 #include<bits/stdc++.h>using namespace std;double f(char a){ if(a=='C') return 阅读全文