摘要:
1 #include 2 #include 3 using namespace std; 4 //错排问题,直接用公式 5 //(n-1)*(f(n-1) + f(n-2)) 6 7 long long f(int n){ 8 if (n == 1) 9 return 0; 10 if (n == 2) 11 return ... 阅读全文
posted @ 2018-03-05 20:47
ouyang_wsgwz
阅读(158)
评论(0)
推荐(0)
摘要:
1 #include 2 bool huiwen(char a[], int n){ 3 4 int i, j; 5 i = 0; j = n - 1; 6 7 while (i = 10){ 32 buffer[counter] = temp - 10 + 'A'; 33 } 3... 阅读全文
posted @ 2018-03-05 20:39
ouyang_wsgwz
阅读(423)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 using namespace std; 4 const int maxn = 10005; 5 char biao[] = "0123456789ABCDEF"; 6 int main(){ 7 int a, b; 8 char s[maxn]; 9 int len; 10 while (ci... 阅读全文
posted @ 2018-03-05 20:28
ouyang_wsgwz
阅读(243)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 using namespace std; 4 const int maxn = 10005; 5 char biao[] = "0123456789ABCDEF"; 6 int main(){ 7 int a, b; 8 char s[maxn]; 9 int len; 10 while (ci... 阅读全文
posted @ 2018-03-05 20:23
ouyang_wsgwz
阅读(351)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 6 typedef long long LL; 7 8 int main(){ 9 10 LL a, b; 11 while (cin >> a >> b){ 12 int t; 13 int ans =... 阅读全文
posted @ 2018-03-05 20:15
ouyang_wsgwz
阅读(152)
评论(0)
推荐(0)

浙公网安备 33010602011771号