Submission
# | When | Author | Problem | Language | CPU | Memory | |
---|---|---|---|---|---|---|---|
20866 | 2024-06-13 00:17:17 | AHAMMED_99 | Game On Space | C | 0 ms | 1532 kb | Wrong Answer - 4 |
Test Cases
# | CPU | Memory | Points | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 ms | 1400 kb | 1 | Accepted | |||||||
2 | 0 ms | 1328 kb | 1 | Accepted | |||||||
3 | 0 ms | 1324 kb | 1 | Accepted | |||||||
4 | 0 ms | 1532 kb | 0 | Wrong Answer | |||||||
5 | 0 ms | 0 kb | 0 | Skipped | |||||||
6 | 0 ms | 0 kb | 0 | Skipped | |||||||
7 | 0 ms | 0 kb | 0 | Skipped | |||||||
8 | 0 ms | 0 kb | 0 | Skipped | |||||||
9 | 0 ms | 0 kb | 0 | Skipped | |||||||
10 | 0 ms | 0 kb | 0 | Skipped | |||||||
11 | 0 ms | 0 kb | 0 | Skipped | |||||||
12 | 0 ms | 0 kb | 0 | Skipped | |||||||
13 | 0 ms | 0 kb | 0 | Skipped | |||||||
14 | 0 ms | 0 kb | 0 | Skipped | |||||||
15 | 0 ms | 0 kb | 0 | Skipped | |||||||
16 | 0 ms | 0 kb | 0 | Skipped | |||||||
17 | 0 ms | 0 kb | 0 | Skipped | |||||||
18 | 0 ms | 0 kb | 0 | Skipped | |||||||
19 | 0 ms | 0 kb | 0 | Skipped | |||||||
20 | 0 ms | 0 kb | 0 | Skipped | |||||||
21 | 0 ms | 0 kb | 0 | Skipped | |||||||
22 | 0 ms | 0 kb | 0 | Skipped | |||||||
23 | 0 ms | 0 kb | 0 | Skipped | |||||||
24 | 0 ms | 0 kb | 0 | Skipped |
Source Code
#include <stdio.h> // Function to check if Tajbin can win based on the parity of max distances int checkTajbinWin(long maxDistances[], int n) { // Count the number of dimensions with odd maximum distances int oddCount = 0; for (int i = 0; i < n; i++) { if (maxDistances[i] % 2 != 0) { oddCount++; } } // If there are odd number of dimensions with odd maximum distances, Tajbin wins return oddCount % 2 != 0; } int main() { int n; long maxDistances[n]; for (int i = 0; i < n; i++) { } // Check if Tajbin can win based on the parity of max distances int tajbinWins = checkTajbinWin(maxDistances, n); // Output the winner if (tajbinWins) { } else { } return 0; }