Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

View File

@ -0,0 +1,16 @@
#include <iostream>
using namespace std;
signed main()
{
int n;
cin >> n ;
for(int i = 1; i <= n; ++ i)
{
string s1, s2;
cin >> s1 >> s2 ;
if(s1 == "Rock" && s2 == "Scissors" || s1 == "Scissors" && s2 == "Paper" || s1 == "Paper" && s2 == "Rock") cout << "Player1" << endl ;
else if(s1 == s2) cout << "Tie" << endl ;
else cout << "Player2" << endl ;
}
}