21564_Times17

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

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

Pro.ID

21564

Title

Times17

Title链接

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

AC

23

Submit

124

Ratio

18.55%

时间&空间限制

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

    After realizing that there is much money to be made in software development, Farmer John has launched a small side business writing short programs for clients in the local farming industry.

    Farmer John's first programming task seems quite simple to him -- almost too simple: his client wants him to write a program that takes a number N as input, and prints 17 times N as output.  Farmer John has just finished writing this simple program when the client calls him up in a panic and informs him that the input and output both must be expressed as binary numbers, and that these might be quite large.

    Please help Farmer John complete his programming task.  Given an input number N, written in binary with at most 1000 digits, please write out the binary representation of 17 times N.

    输入

    多测试。

    * Line 1: The binary representation of N (at most 1000 digits).

    输出

    Description

    After realizing that there is much money to be made in software development, Farmer John has launched a small side business writing short programs for clients in the local farming industry.

    Farmer John's first programming task seems quite simple to him -- almost too simple: his client wants him to write a program that takes a number N as input, and prints 17 times N as output.  Farmer John has just finished writing this simple program when the client calls him up in a panic and informs him that the input and output both must be expressed as binary numbers, and that these might be quite large.

    Please help Farmer John complete his programming task.  Given an input number N, written in binary with at most 1000 digits, please write out the binary representation of 17 times N.

    Input

    多测试。

    * Line 1: The binary representation of N (at most 1000 digits).

    Output

    * Line 1: The binary representation of N times 17.

    Sample Input

    10110111

    Sample Output

    110000100111

    Hint

    OUTPUT DETAILS:

    The binary number 10110111 is equal to 183 in decimal form. 183 × 17 = 3111 is 110000100111 in binary format.

    Source

    样例输入

    10110111

    样例输出

    110000100111

    提示

    OUTPUT DETAILS:

    The binary number 10110111 is equal to 183 in decimal form. 183 × 17 = 3111 is 110000100111 in binary format.


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部