#include<stdio.h> int main() { int N; scanf("%d", &N); while (N-- > 0) { int n; int count = 0; scanf("%d", &n); if (n == 1) { printf("I win!\n"); continue; } else { while (n != 1) { if (n % 2) { n = n * 3 + 1; } else { n = n / 2; } count++; } if (count % 2) { printf("I win!\n"); } else { printf("I lost!\n"); } } } }
《NOJ1055 叙拉古猜想》有1个想法