From 47073aef3b628f0cb3db44e920c6ec8108c7e9b2 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Fri, 6 Aug 2021 18:35:31 +0800 Subject: [PATCH] =?UTF-8?q?763.=20=E5=BE=AA=E7=8E=AF=E7=9B=B8=E5=85=8B?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/6942919/ --- AcWing/763/763.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 AcWing/763/763.cpp diff --git a/AcWing/763/763.cpp b/AcWing/763/763.cpp new file mode 100644 index 00000000..0ab99579 --- /dev/null +++ b/AcWing/763/763.cpp @@ -0,0 +1,22 @@ +#include + +using namespace std; + +int main() { + int t; + cin >> t; + while (t--) { + string a, b; + cin >> a >> b; + int as = a.size(); + int bs = b.size(); + if (as - bs == 3 || as - bs == -1 || as - bs == -2) { + cout << "Player1" << endl; + } else if (a == b) { + cout << "Tie" << endl; + } else { + cout << "Player2" << endl; + } + } + return 0; +}