摘要:
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
摘要:
E - Cable master POJ - 1064 Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered a 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; void dfs( int index , int a[] , int n ){ if( index == n ){ for( int i = 0 ; i < n ; i ++ ) cout << a[i]; 阅读全文
摘要:
题目: 给定两个二进制字符串,返回他们的和(用二进制表示)。 样例 a = 11 b = 1 返回 100 代码: #include<bits/stdc++.h> using namespace std; const int maxn=1e3+5; char a[maxn],s1[maxn],s2[ 阅读全文
摘要:
accumulate定义在#include<numeric>中,作用有两个,一个是累加求和,另一个是自定义类型数据的处理 1.累加求和int sum = accumulate(vec.begin() , vec.end() , 42); accumulate带有三个形参:头两个形参指定要累加的元素范 阅读全文