페이지

5063번: TGN

https://www.acmicpc.net/problem/5063


$O(n)$


#include<cstdio>
int n, a, b, c;
int main() {
    scanf("%d", &n);
    for (int i = 0; i<n; i++) scanf("%d %d %d", &a, &b, &c),
        puts(a == b - c ? "does not matter" : a < b - c ? "advertise" : "do not advertise");
    return 0;
}

댓글 없음 :

댓글 쓰기