Find the bug 1
Разница между en1 и en2, 2 символ(ов) изменены
The problem: [Problem](https://www.luogu.com.cn/problem/P1290) ([Reserve link](https://www.luogu.com/problem/P1290))↵
↵
~~~~~↵
#include <bits/stdc++.h>↵
using namespace std;↵
↵
int main() {↵
int c, m, n;↵
bool stan;↵
cin >> c;↵
while (c --) {↵
stan = true;↵
cin >> m >> n;↵
if (m < n) swap(m, n);↵
while (n && m / n == 1) {↵
stan = !stan;↵
m -= n;↵
swap(m, n);↵
}↵
puts(stan ? "Stan wins" : "Ollie wins");↵
}↵
return 0;↵
}↵
~~~~~↵
↵
It passes the example, but not accepted.↵
↵
Please give a counte
rexample and fix the program.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский xiaoyiming12 2026-10-25 16:53:40 2 Tiny change: 'e a countexample an' -> 'e a counterexample an' (published)
en1 Английский xiaoyiming12 2026-10-25 16:52:55 565 初步修订 (saved to drafts)