답안 #414804

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
414804 2021-05-31T08:10:15 Z 조영욱(#7631) Navigation 2 (JOI21_navigation2) C++17
0 / 100
23 ms 628 KB
#include "Anna.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;

namespace {

int FunctionExample(int r, int c, int K) {
  return (r + c) % K + 1;
}
int arr[7]={1,5,25,125,625,3125,15625};
int val[100][100];
} // namespace

void Anna(int n,int k, vector<int> R, vector<int> C) {
    memset(val,0,sizeof(val));
    for(int ind=0;ind<k;ind++) {
        int x=R[ind];
        int y=C[ind];
        val[x][y]+=4*arr[ind];
        for(int i=y+1;i<n;i++) {
            val[x][i]+=arr[ind];
        }
        for(int i=0;i<x;i++) {
            for(int j=0;j<n;j++) {
                val[i][j]+=2*arr[ind];
            }
        }
        for(int i=x+1;i<n;i++) {
            for(int j=0;j<n;j++) {
                val[i][j]+=3*arr[ind];
            }
        }
    }
    for(int i=0;i<n;i++) {
        for(int j=0;j<n;j++) {
            SetFlag(i,j,val[i][j]);
        }
    }
}
#include "Bruno.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;

namespace {

int variable_example = 1;
int arr[7]={1,5,25,125,625,3125,15625};
} // namespace

vector<int> Bruno(int k,vector<int> value) {
    int x=value[4];
    vector<int> v;
    for(int i=0;i<k;i++) {
        v.push_back(x%5);
        x/=5;
    }
    return v;
}

Compilation message

Anna.cpp:8:5: warning: 'int {anonymous}::FunctionExample(int, int, int)' defined but not used [-Wunused-function]
    8 | int FunctionExample(int r, int c, int K) {
      |     ^~~~~~~~~~~~~~~

Bruno.cpp:9:5: warning: '{anonymous}::arr' defined but not used [-Wunused-variable]
    9 | int arr[7]={1,5,25,125,625,3125,15625};
      |     ^~~
Bruno.cpp:8:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    8 | int variable_example = 1;
      |     ^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Partially correct 13 ms 552 KB Partially correct
2 Partially correct 15 ms 444 KB Partially correct
3 Partially correct 15 ms 544 KB Partially correct
4 Partially correct 15 ms 616 KB Partially correct
5 Partially correct 12 ms 476 KB Partially correct
6 Partially correct 16 ms 544 KB Partially correct
7 Partially correct 13 ms 628 KB Partially correct
8 Partially correct 18 ms 544 KB Partially correct
9 Partially correct 17 ms 416 KB Partially correct
10 Partially correct 17 ms 416 KB Partially correct
11 Partially correct 19 ms 544 KB Partially correct
12 Partially correct 17 ms 544 KB Partially correct
13 Partially correct 19 ms 544 KB Partially correct
14 Partially correct 16 ms 544 KB Partially correct
15 Partially correct 19 ms 544 KB Partially correct
16 Partially correct 16 ms 544 KB Partially correct
17 Partially correct 17 ms 544 KB Partially correct
18 Partially correct 20 ms 544 KB Partially correct
19 Partially correct 13 ms 416 KB Partially correct
20 Partially correct 19 ms 544 KB Partially correct
21 Partially correct 18 ms 416 KB Partially correct
22 Partially correct 18 ms 544 KB Partially correct
23 Partially correct 16 ms 544 KB Partially correct
24 Partially correct 15 ms 416 KB Partially correct
25 Partially correct 19 ms 416 KB Partially correct
26 Partially correct 16 ms 544 KB Partially correct
27 Partially correct 16 ms 416 KB Partially correct
28 Partially correct 16 ms 544 KB Partially correct
29 Partially correct 17 ms 544 KB Partially correct
30 Partially correct 15 ms 544 KB Partially correct
31 Partially correct 17 ms 416 KB Partially correct
32 Partially correct 15 ms 616 KB Partially correct
33 Partially correct 15 ms 544 KB Partially correct
34 Partially correct 19 ms 416 KB Partially correct
35 Partially correct 14 ms 536 KB Partially correct
36 Partially correct 15 ms 564 KB Partially correct
37 Partially correct 15 ms 544 KB Partially correct
38 Partially correct 18 ms 628 KB Partially correct
39 Partially correct 19 ms 544 KB Partially correct
40 Partially correct 15 ms 496 KB Partially correct
41 Partially correct 17 ms 416 KB Partially correct
42 Partially correct 18 ms 544 KB Partially correct
43 Partially correct 18 ms 624 KB Partially correct
44 Partially correct 22 ms 544 KB Partially correct
45 Partially correct 22 ms 544 KB Partially correct
46 Partially correct 15 ms 416 KB Partially correct
47 Partially correct 20 ms 500 KB Partially correct
48 Partially correct 23 ms 544 KB Partially correct
49 Partially correct 19 ms 416 KB Partially correct
50 Partially correct 19 ms 544 KB Partially correct
51 Partially correct 20 ms 416 KB Partially correct
52 Partially correct 19 ms 544 KB Partially correct
53 Partially correct 23 ms 416 KB Partially correct
54 Partially correct 19 ms 544 KB Partially correct
55 Partially correct 20 ms 544 KB Partially correct
56 Incorrect 1 ms 336 KB Wrong Answer [2]
57 Halted 0 ms 0 KB -