Submission #1037122

# Submission time Handle Problem Language Result Execution time Memory
1037122 2024-07-28T07:30:35 Z clementine None (JOI15_memory) C++17
0 / 100
0 ms 348 KB
#include "Memory_lib.h"
#include <bits/stdc++.h>
using namespace std;


int Memory(int N, int M) {

  int day = M / 10000;
  char ith = Get(day + 1);

  if(ith == '<')
  {
    M += 100;
  }
  else if(ith == '>')
  {
    M -= 100;
  }
  else if(ith == '[')
  {
    M +=1;
  }
  else if(ith == ']')
  {
    M -=1;
  }
  
  M += 10000;

  int trig = (M / 100) % 100;
  int sqr = M % 100;
  if(trig > 50 || sqr > 50)
  {
    return -2;
  }
  if(day + 1 == N)
  {
    if(M % 10000 == 0)
    {
      return -1;
    }
    else{return -2;}
  }
  return M;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -