Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created November 18, 2016 08:43
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 whatalnk/9ee2ac7efe7a8ffaff4cf14731190b20 to your computer and use it in GitHub Desktop.
Save whatalnk/9ee2ac7efe7a8ffaff4cf14731190b20 to your computer and use it in GitHub Desktop.
AtCoder ABC #036 A. お茶 [C++]
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << b / a + min({b % a, 1}) << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment