Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Last active May 15, 2019 07:48
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/c0454abffca09bd25de28b8787bae7e9 to your computer and use it in GitHub Desktop.
Save whatalnk/c0454abffca09bd25de28b8787bae7e9 to your computer and use it in GitHub Desktop.
AtCoder ABC #099 A - ABD
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int n;
void solve() {
if (n > 999) {
cout << "ABD" << endl;
} else {
cout << "ABC" << endl;
}
}
int main() {
cin >> n;
solve();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment