Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<cstdio>#include<cstring>#include<algorithm>#include<map>#include<vector>#include<queue>#include<cmath>#include<set>using namespace std;typedef long long LL;typedef unsigned int uint;float image[36][36][3];float w[5][5][3][8];float b[8];float output[16][16][8];void convolution() {// filterfor (int f = 0; f < 8; f++) {// output coordinatefor (int x = 0; x < 16; x++)for (int y = 0; y < 16; y++) {// input coordinateoutput[x][y][f] = b[f];for (int i = 0; i < 5; i++)for (int j = 0; j < 5; j++)for (int c = 0; c < 3; c++)output[x][y][f] += image[2*x + i+1][2*y + j+1][c] * w[i][j][c][f];if (output[x][y][f] < 0)