This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub beet-aizu/library
#ifndef call_from_test #include <bits/stdc++.h> using namespace std; #endif //BEGIN CUT HERE template<typename ...Ts> decltype(auto) zip(vector<Ts>... args){ vector<decltype(make_tuple(args[0]...))> res; int n=min({args.size()...}); res.reserve(n); for(int i=0;i<n;i++) res.emplace_back(args[i]...); return res; } //END CUT HERE #ifndef call_from_test signed main(){ return 0; } #endif
#line 1 "vector/zip.cpp" #include <bits/stdc++.h> using namespace std; #endif //BEGIN CUT HERE template<typename ...Ts> decltype(auto) zip(vector<Ts>... args){ vector<decltype(make_tuple(args[0]...))> res; int n=min({args.size()...}); res.reserve(n); for(int i=0;i<n;i++) res.emplace_back(args[i]...); return res; } //END CUT HERE #ifndef call_from_test signed main(){ return 0; } #endif