From c5b95cd5718e21aa9c623733ad00b33b984b0d8e Mon Sep 17 00:00:00 2001 From: Hiyabye Date: Sat, 6 Jan 2024 22:48:51 +0900 Subject: [PATCH] Add 14696.cpp --- 14xxx/14696.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 14xxx/14696.cpp diff --git a/14xxx/14696.cpp b/14xxx/14696.cpp new file mode 100644 index 00000000..c2defbe5 --- /dev/null +++ b/14xxx/14696.cpp @@ -0,0 +1,32 @@ +#include +#include +using namespace std; + +vector input(void) { + int n; cin >> n; + vector v(n); + for (int i=0; i> v[i]; + + vector ret(5, 0); + for (int i=0; i a = input(); + vector b = input(); + + for (int i=4; i>=1; i--) { + if (a[i] != b[i]) return a[i] > b[i] ? 'A' : 'B'; + } + return 'D'; +} + +int main(void) { + ios::sync_with_stdio(false); + cin.tie(nullptr); cout.tie(nullptr); + + int n; cin >> n; + while (n--) cout << solve() << "\n"; + return 0; +} \ No newline at end of file