페이지

10162번: 전자레인지

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


$O(1)$


#include<cstdio>
int t;
int main() {
    scanf("%d", &t);
    printf(t % 10 ? "-1" : "%d %d %d", t / 300, t / 60 % 5, t / 10 % 6);
    return 0;
}

댓글 없음 :

댓글 쓰기