Skip to content

Instantly share code, notes, and snippets.

@PreSoichiSumi
Last active October 14, 2016 22:09
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 PreSoichiSumi/348aac9479308054ad71abe27491fce0 to your computer and use it in GitHub Desktop.
Save PreSoichiSumi/348aac9479308054ad71abe27491fce0 to your computer and use it in GitHub Desktop.
覚え書き
//--source
int a=2e9;
int b=2e9;
LL al=2e9;
LL bl=2e9;
cout<<"int:"<<endl;
cout<<(a+b)/2<<endl;
cout<<"LL:"<<endl;
cout<<(al+bl)/2<<endl;
//--output
/*
int:
-147483648
LL:
2000000000*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment