Yuki 374 コイン ( Game Theory )
No.374 コイン - yukicoder
もし先手が置けたら中心に置き、後手がどう置けば先手はその対称する位置にもおく。すると先手は必ず勝つと示せる。
#include <bits/stdc++.h> using namespace std; const string msg[] = { "K", "S" }; signed main(){ unsigned int A, B; cin >> A >> B; cout << msg[ B <= A ] << endl; return 0; }