ps | |
---|---|
링크 | acmicpc.net/… |
출처 | BOJ |
문제 번호 | 32908 |
문제명 | Programmers and Stones |
레벨 | 골드 3 |
분류 |
게임 이론 |
시간복잡도 | O(n) |
인풋사이즈 | n<=100000 |
사용한 언어 | Python 3.13 |
제출기록 | 44748KB / 64ms |
최고기록 | 64ms |
해결날짜 | 2025/01/17 |
"""Solution code for "BOJ 32908. Programmers and Stones".
- Problem link: https://www.acmicpc.net/problem/32908
- Solution link: http://www.teferi.net/ps/problems/boj/32908
Tags: [game theory]
"""
def main():
n = int(input()) # pylint: disable=unused-variable
a = [int(x) for x in input().split()]
print('Dmitry' if all(x % 2 == 0 for x in a) else 'Alice')
if __name__ == '__main__':
main()