#include <iostream>
#include <cstring>
#include <algorithm>
#include <ctime>
#include <unistd.h>
#include <fstream>
#include <vector>
using namespace std;
int main()
{
ifstream fin("names_output.txt");
vector<int> ids;
int id;
while (fin >> id) ids.push_back(id);
int n = ids.size();
srand(time(0));
puts("获得语法基础课激活码的同学:");
for (int i = 0; i < 3; i ++ )
{
while (true)
{
int k = rand() % n;
if (ids[k] != -1)
{
int id = ids[k];
ids[k] = -1;
sleep(1);
printf("user id: %d\n", id);
break;
}
}
}
sleep(1);
puts("----------------------------------------");
puts("获得算法基础课激活码的同学:");
for (int i = 0; i < 2; i ++ )
{
while (true)
{
int k = rand() % n;
if (ids[k] != -1)
{
int id = ids[k];
ids[k] = -1;
sleep(1);
printf("user id: %d\n", id);
break;
}
}
}
sleep(1);
puts("----------------------------------------");
puts("获得LeetCode究极班激活码的同学:");
for (int i = 0; i < 2; i ++ )
{
while (true)
{
int k = rand() % n;
if (ids[k] != -1)
{
int id = ids[k];
ids[k] = -1;
sleep(1);
printf("user id: %d\n", id);
break;
}
}
}
sleep(1);
puts("----------------------------------------");
puts("获得算法提高课激活码的同学:");
for (int i = 0; i < 1; i ++ )
{
while (true)
{
int k = rand() % n;
if (ids[k] != -1)
{
int id = ids[k];
ids[k] = -1;
sleep(1);
printf("user id: %d\n", id);
break;
}
}
}
sleep(1);
puts("----------------------------------------");
return 0;
}
获奖名单公示:
获得语法基础课激活码的同学:
user id: 30271
user id: 94603
user id: 48879
获得算法基础课激活码的同学:
user id: 106276
user id: 85278
获得LeetCode究极班激活码的同学:
user id: 97709
user id: 60192
获得算法提高课激活码的同学:
user id: 68874
要是被抽到的欧皇已经买了中奖的课怎么办?返现金?返AC币?(啥也不返?)
反AC币 激活码在直播间再抽掉 y总还是很良心的
Linux VSCode:
获得语法基础课激活码的同学:
浮点数例外 (核心已转储)
id号怎么知道
进我的空间 然后看网址后面的数字 应该就是id
y总写的真好哇!!!!!赞*1000000000000000000000
y总牛逼
y总牛逼
前排围观欧皇🤩
前排围观欧皇