新人求助:为什么这个题AC了,分数是-INF?
  • 板块灌水区
  • 楼主Apathy_Cul
  • 当前回复18
  • 已保存回复18
  • 发布时间2022/3/19 15:22
  • 上次更新2023/10/28 06:12:57
查看原帖
新人求助:为什么这个题AC了,分数是-INF?
649412
Apathy_Cul楼主2022/3/19 15:22

这个题

SPJ代码:

#include "testlib.h"
#include <ctime>
using namespace std;

int main(int argc, char*argv[]) {
    registerTestlibCmd(argc, argv);
    outf.readInt();
    registerGen(argc, argv, 1);
    int ans = rnd.next(115414, 1919810);
    ans *= time(0);
    ans %= (1919810 - 115414 + 1);
    ans += 115414;
    if ((rnd.next(1, 4) * time(0)) % 2 == 1) {
        quitf(_ok, "YOUR RP IS GOOD!\n");
    } else {
        quitp((double) (ans), "YOUR RP IS BAD!");
    }
    return 0;
}

2022/3/19 15:22
加载中...