ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • boj 10250
    카테고리 없음 2021. 8. 15. 03:00
    #include <bits/stdc++.h>
    using namespace std;
    
    int main(void) {
    	int t;
    	cin >> t;
    	while (t--) {
    		int h, w, n;
    		cin >> h >> w >> n;
    		cout << 100 * ((n - 1) % h + 1) + (n - 1) / h + 1 << "\n";
    	}
    }

    댓글

Designed by Tistory.