https://leetcode.com/problems/divisor-game/
| 4 | * https://leetcode.com/problems/divisor-game/ |
| 5 | */ |
| 6 | public class Sanghoo { |
| 7 | |
| 8 | // Alice가 첫 번째로 무조건 시작하는데, 2명이서 turn제 게임이면 짝수면 무조건 Alice 승리 아닌가? |
| 9 | public static boolean divisorGame(int n) { |
| 10 | return (n%2 == 0) ? true : false; |
| 11 | } |
| 12 | |
| 13 | public static void main(String[] args) { |
| 14 | System.out.println(divisorGame(3)); |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected