Kaynağa Gözat

数数字----博弈

爱玲姐姐 5 yıl önce
ebeveyn
işleme
c514db61a3
1 değiştirilmiş dosya ile 15 ekleme ve 0 silme
  1. 15 0
      A.cpp

+ 15 - 0
A.cpp

@@ -0,0 +1,15 @@
+#include <bits/stdc++.h>
+using namespace std;
+int main(){
+    int t;
+    cin >> t;
+    while(t--){
+        long long n;
+        cin >> n;
+        if(n % 4 == 0){
+            cout << "Bob win" << endl;
+        }else{
+            cout << "Alice win" << endl;
+        }
+    }
+}