oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

snake Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

README.txt

The implementation for this task is different from described inside the pdf!

Instead of implementing main, you have to implement a different function snake:
int snake(int K)

Instead of calling get_speed, use the K provided in the argument. Instead of calling tell_length, return your answer. Calls to ask_snake are unchanged.

snake.pdf

Your browser does not support embedded PDF files. Please download the PDF instead.

Tags

CEOI 2008, Search

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100201s32MBMinimum
2011s32MBMinimum

Attachments

Attachment Filesize Last Updated
snake.in6B4 Jun 2014, 00:08:23
snakelib.c3.03KB4 Jun 2014, 01:21:56
snake.c770B4 Jun 2014, 01:26:05
snakelib.h223B4 Jun 2014, 01:24:01

Judge Compile Command

g++-8 snake.cpp snakelib.cpp mt19937ar.c -o snake -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.