Submission #282270

# Submission time Handle Problem Language Result Execution time Memory
282270 2020-08-24T08:28:10 Z 문홍윤(#5760) None (JOI15_memory) C++17
0 / 100
1 ms 256 KB
#include "Memory_lib.h"
#include <bits/stdc++.h>
using namespace std;

int Memory(int N, int M){
    int a=M%100;
    int b=M/100;
    b++;
    char c=Get(b);
    if(c=='<')a++;
    else a--;
    if(a<0)return -2;
    if(b==N){
        if(a)return -2;
        return -1;
    }
    return a+b*100;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -