Say 100

Problem #176

Tags: interactive simple

Who solved this?

This is the simplest of interactive problems - please read explanations in this article before trying. The purpose of this task is to learn exchanging post requests with server at all.

You are to play quite clever game against the server:

Server url is http://codeabbey.sourceforge.net/say-100.php

Input data gives you a token to play and answer should contain victory token returned to you by server.

Example:

YOU                                 SERVER
------------------------            ------------------------

token: <your-token>                 secret: 74                              // request-response # 1

token: <your-token>                 end: <your-victory-token>               // request-response # 2
answer: 26
You need to login to get test data and submit solution.