Skip to content

Commit

Permalink
Merge pull request #1231 from maspypy/1224
Browse files Browse the repository at this point in the history
テストケース追加(1224)
  • Loading branch information
maspypy authored Sep 4, 2024
2 parents 270a1f9 + 292af3b commit a2ae4a7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions graph/assignment/gen/multiplication_table.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <iostream>
#include <vector>
#include "../params.h"

using namespace std;

int main() {
int n = N_MAX;
vector<vector<int>> a(n, vector<int>(n));
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) { a[i][j] = (1 + i) * (1 + j); }
}

printf("%d\n", n);
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
printf("%d", a[i][j]);
if (j != n - 1) printf(" ");
}
printf("\n");
}
return 0;
}
2 changes: 2 additions & 0 deletions graph/assignment/hash.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"max_random_03.out": "c872eda2dde7618e8da61d78605bd7c4be6418fc95b6f75aa8bd264529cc35ea",
"max_random_04.in": "d73f73c804194f30843cf8a53657c3dfd13169351e481a63f0ba9a5098766d18",
"max_random_04.out": "fa4fe6fcbb4c1eb082c04eacc9706ef857f5d41039bb9f09e764624c5e563e2a",
"multiplication_table_00.in": "d36a43718ebe8f3699ba5f395963b6124d8aa90109e01e6beffcbfc9d3c11f96",
"multiplication_table_00.out": "a5b217a1b663912f393b10f642845e80ecd9c32d14cea2f5f026cf89d735b346",
"random_00.in": "eea2789c3c26f96aee5317ce8c510b3db643a58a1ea1c86dc10edd760f184bcb",
"random_00.out": "18ea26f96bfb3dd293e676649abfc21837889f7d538de02dc6289699d6b05c4a",
"random_01.in": "37859b964265e2fe2333f8e013d1786e12803a10f8dbfba60e3e51de22958805",
Expand Down
4 changes: 4 additions & 0 deletions graph/assignment/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ forum = "https://github.com/yosupo06/library-checker-problems/issues/38"
name = "hand_minus.cpp"
number = 1

[[tests]]
name = "multiplication_table.cpp"
number = 1

[[solutions]]
name = 'invalid.cpp'
expect = "WA"
Expand Down

0 comments on commit a2ae4a7

Please sign in to comment.