【问题标题】:......no availabe [duplicate]......没有可用的[重复]
【发布时间】:2023-03-29 19:31:01
【问题描述】:

…………我 如何 nihas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有赞成票

【问题讨论】:

    标签: java file io


    【解决方案1】:

    我不会告诉你如何回答整个问题。但是您似乎主要对随机部分感到困惑。以下是你的做法。

    Random rand = new Random();
    int i = 582; // some arbitrary integer to act as the input
    int randInt = rand(5) + 5; // random value from 5 - 9 inclusive
    int j = i + randInt; // add the random value to the output integer
    

    i 是输入文件中的整数,j 是输出整数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-05
      • 1970-01-01
      • 2016-01-13
      • 1970-01-01
      • 2019-07-08
      • 1970-01-01
      • 2022-01-18
      相关资源
      最近更新 更多