algorithm'''problem solve
[백준]10250-ACM호텔 (설명X)
JunHwa Park
2019. 1. 8. 11:08
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include <stdio.h> int main() { int T; scanf("%d", &T); for (int i = 0; i < T; i++) { int H, W, N; scanf("%d %d %d", &H, &W, &N); int h, w; h = 1; w = 1; for (int n = 1; n < N; n++) { if (h < H) h++; else { h = 1; w++; } } printf("%d\n", h * 100 + w); } return 0; } | cs |
쉬운 문제는 설명을 함께 올리지 않습니다.