- C++相談室 part120 [転載禁止]©2ch.net
67 :デフォルトの名無しさん[]:2015/10/26(月) 00:37:37.85 ID:8cS3iYFV - >>63>>64>>65
おお、いいですね! 結局以下のような感じにしました。 int judge(const Hand& ore, const Hand& omae) { return (ore == omae) ? 0 : (omae == ( ore + 1 ) % 3) ? 1 : -1; } ありがとうございました!
|
|