Submission #282276

# Submission time Handle Problem Language Result Execution time Memory
282276 2020-08-24T08:34:52 Z 문홍윤(#5760) None (JOI15_memory) C++17
10 / 100
3040 ms 283840 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%=N;
    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 Correct 2948 ms 283768 KB Output is correct
2 Incorrect 3040 ms 283840 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2948 ms 283768 KB Output is correct
2 Incorrect 3040 ms 283840 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2948 ms 283768 KB Output is correct
2 Incorrect 3040 ms 283840 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2948 ms 283768 KB Output is correct
2 Incorrect 3040 ms 283840 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3038 ms 283716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2948 ms 283768 KB Output is correct
2 Incorrect 3040 ms 283840 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -