Skip to content

Instantly share code, notes, and snippets.

@MiSawa
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MiSawa/1b46c57f411d3c71e213 to your computer and use it in GitHub Desktop.
Save MiSawa/1b46c57f411d3c71e213 to your computer and use it in GitHub Desktop.
template<typename T> inline void read(T &x){assert(false);}
template<> inline void read<int>(int &x){scanf("%d ",&x);}
template<> inline void read<ll>(ll &x){scanf("%lld ",&x);}
// template<> inline void read<ll>(ll &x){scanf("%I64d ",&x);}
template<typename Arg, typename Arg2, typename ...Args>
inline void read(Arg &x, Arg2 &y, Args& ...z){
read<Arg>(x); read<Arg2, Args...>(y, z...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment