boj step 7 rework

This commit is contained in:
2024-03-12 17:29:18 +09:00
parent 19b37b6610
commit 91154a5af1
5 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include<iostream>
int main() {
int TM = 0;
int now;
int idx_x, idx_y;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
std::cin >> now;
if (now >= TM) {
TM = now;
idx_x = i + 1;
idx_y = j + 1;
}
}
}
std::cout << TM << std::endl;
std::cout << idx_x << " " << idx_y << std::endl;
}