# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
38377 | daniel_02 | Bomb (IZhO17_bomb) | C++14 | 406 ms | 2016 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
char a;
int ans;
int main()
{
int n, m;
cin >> n >> m;
for (int i = 0; i < n; i++)
{
scanf("\n");
for (int j = 0; j < m; j++)
{
scanf("%c",&a);
if (a == '1')ans++;
}
}
cout << ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |