22231_sqrtlogsin

2022-5-16 18:21| 发布者: Hocassian| 查看: 20| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506218679600-Problem List-采集的数据-后羿采集器.html

Pro.ID

22231

Title

sqrt log sin

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22231

AC

28

Submit

50

Ratio

56.00%

时间&空间限制

  • Time Limit: 1000/500 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    An evil professor has just assigned you the following problem.

    A sequence is defined by the following recurrence:

    Determine x1000000.

    输入

    Input consists of a number of lines, each containing one integer, a value of i, no less than zero and no greater than one million. Input is followed by a single line containing the integer -1. This last line is not a value of i and should not be processed.

    输出

    Description

    An evil professor has just assigned you the following problem.

    A sequence is defined by the following recurrence:

    Determine x1000000.

    Input

    Input consists of a number of lines, each containing one integer, a value of i, no less than zero and no greater than one million. Input is followed by a single line containing the integer -1. This last line is not a value of i and should not be processed.

    Output

    For each value of i in the input (but not the final -1), output the corresponding value of xi modulo 1000000.

    Sample Input

    0
    -1

    Sample Output

    1

    Source

    样例输入

    0
    -1

    样例输出

    1

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部