-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10250.cpp
executable file
·45 lines (42 loc) · 871 Bytes
/
10250.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// #include<iostream>
// #include<sstream>
// #include<fstream>
// #include<string>
// #include<algorithm>
// #include<cmath>
// #include<stdexcept>
// #include<memory>
// #include<vector>
// #include<list>
// #include<map>
// #include<set>
// #include<numeric>
// using namespace std;
// int main(){
// int n = 0;
// cin >> n;
// cin.ignore();
// string line;
// while(n>0){
// getline(cin,line);
// istringstream ss{line};
// int H;
// int W;
// int N;
// ss >> H >> W >> N;
// int dist = N / H + 1;
// int height = N % H;
// if(height == 0 ) {
// height = H;
// dist = N/H;
// }
// string dist_str = "";
// if(dist / 10 == 0 ){
// dist_str = "0" + to_string(dist);
// }else{
// dist_str = to_string(dist);
// }
// cout << height << dist_str<<'\n';
// --n;
// }
// }