Submission #2079046
Source Code Expand
#include <bits/stdc++.h>
using Int = int64_t;
using UInt = uint64_t;
using C = std::complex<double>;
#define rep(i, n) for(Int i = 0; i < (Int)(n); ++i)
#define guard(x) if( not (x) ) continue;
#ifndef LOCAL_
#define fprintf if( false ) fprintf
#endif
struct Solver {
Int h, w;
char field[64][64];
std::vector<std::pair<Int,Int>> ans;
void solve() {
scanf("%ld %ld %*ld", &h, &w);
rep(i,h) {
scanf("%s", field[i]);
}
rep(r,h) {
for(Int i = 0; i + 8 < w; i+=8) {
rep(k,8) {
ans.emplace_back(r,i+k);
}
}
}
printf("%ld\n", ans.size()/8);
for(auto yx : ans) {
printf("%ld %ld\n", yx.first+1, yx.second+1);
}
}
};
int main() {
auto solver = std::make_unique<Solver>();
solver->solve();
}
Submission Info
Submission Time
2018-02-10 17:35:05+0900
Task
A - Multiple Pieces
User
spica314
Language
C++14 (GCC 5.4.1)
Score
49322
Code Size
866 Byte
Status
AC
Exec Time
2 ms
Memory
384 KB
Compile Error
./Main.cpp: In member function ‘void Solver::solve()’:
./Main.cpp:16:35: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=]
scanf("%ld %ld %*ld", &h, &w);
^
./Main.cpp:16:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld %*ld", &h, &w);
^
./Main.cpp:18:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", field[i]);
^
Judge Result
Set Name
test_01
test_02
test_03
test_04
test_05
test_06
test_07
test_08
test_09
test_10
Score / Max Score
4942 / 1343058
3392 / 1343058
5288 / 1343058
5309 / 1343058
5133 / 1343058
5776 / 1343058
4593 / 1343058
3890 / 1343058
6085 / 1343058
4914 / 1343058
Status
Set Name
Test Cases
test_01
subtask_01_01.txt
test_02
subtask_01_02.txt
test_03
subtask_01_03.txt
test_04
subtask_01_04.txt
test_05
subtask_01_05.txt
test_06
subtask_01_06.txt
test_07
subtask_01_07.txt
test_08
subtask_01_08.txt
test_09
subtask_01_09.txt
test_10
subtask_01_10.txt
Case Name
Status
Exec Time
Memory
subtask_01_01.txt
AC
2 ms
384 KB
subtask_01_02.txt
AC
2 ms
384 KB
subtask_01_03.txt
AC
2 ms
384 KB
subtask_01_04.txt
AC
2 ms
384 KB
subtask_01_05.txt
AC
2 ms
384 KB
subtask_01_06.txt
AC
2 ms
384 KB
subtask_01_07.txt
AC
2 ms
384 KB
subtask_01_08.txt
AC
2 ms
384 KB
subtask_01_09.txt
AC
2 ms
384 KB
subtask_01_10.txt
AC
2 ms
384 KB