Task: | Simplified Sudoku |
Sender: | JeHugawa |
Submission time: | 2018-09-13 18:12:14 +0300 |
Language: | C++ |
Status: | READY |
Result: | RUNTIME ERROR |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.01 s | details |
#2 | RUNTIME ERROR | 0.01 s | details |
#3 | RUNTIME ERROR | 0.01 s | details |
#4 | RUNTIME ERROR | 0.02 s | details |
#5 | RUNTIME ERROR | 0.01 s | details |
#6 | RUNTIME ERROR | 0.01 s | details |
#7 | RUNTIME ERROR | 0.02 s | details |
#8 | RUNTIME ERROR | 0.03 s | details |
#9 | RUNTIME ERROR | 0.01 s | details |
#10 | RUNTIME ERROR | 0.01 s | details |
Code
#include <iostream> #include <vector> using namespace std; int main (){ int n; int m = 0; int f; cin >> n; vector<vector<int>> grid; for (int q = 1;q <= n;q++){ m = m + q; } for (int i = 0;i < n;i++){ f = 0; for (int j = 0;j < n;j++){ cin >> grid[i][j]; f += m; } if (f != m) { cout << "NO"; } } }
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
1 1 |
correct output |
---|
YES |
user output |
---|
(empty) |
Test 2
Verdict: RUNTIME ERROR
input |
---|
2 1 2 2 1 |
correct output |
---|
YES |
user output |
---|
(empty) |
Test 3
Verdict: RUNTIME ERROR
input |
---|
2 1 1 1 1 |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 4
Verdict: RUNTIME ERROR
input |
---|
2 2 2 2 2 |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 5
Verdict: RUNTIME ERROR
input |
---|
2 1 2 1 2 |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 6
Verdict: RUNTIME ERROR
input |
---|
2 1 2 1 1 |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 7
Verdict: RUNTIME ERROR
input |
---|
100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 8
Verdict: RUNTIME ERROR
input |
---|
100 32 84 70 64 50 82 33 91 77 56 ... |
correct output |
---|
NO |
user output |
---|
(empty) |
Test 9
Verdict: RUNTIME ERROR
input |
---|
100 1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
correct output |
---|
YES |
user output |
---|
(empty) |
Test 10
Verdict: RUNTIME ERROR
input |
---|
100 1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
correct output |
---|
NO |
user output |
---|
(empty) |