跳到正文

Genius_Star

979266

?

这是 2026年10月19日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
979266
抓取

奖项

2026 NOI 冬令营
银牌
2025 CSP-J
一等奖
2025 CSP-S
一等奖
2025 NOI 冬令营
铜牌
2024 CSP-J
一等奖
2024 CSP-S
一等奖
2023 CSP-J
一等奖
2023 CSP-S
二等奖

版本

  1. v3当前
  2. v2
  3. v1

老主页

luogu 卷王监视:

C++
var userlist = 
["wmrqwq","Neil_Qian","max0810","danaqi","Justin999","Genius_Star","Hoks","incra", "CEFqwq", "LaDex", "cyc001"];
               <!-- 观察成员列表 -->
var pages = 1;  <!-- 初始检查做题记录页数,建议设置为 1-2 -->
var cd = 10000; <!-- 自动检查每个人时间间隔,建议保持为 10000,以免 GG-->
function onSearch(obj)
{
   var storeId=document.getElementById('store');
   var rowsLength=storeId.rows.length;
   var key=document.getElementById('key').value;
   for(var i=1;i < rowsLength;i++)
   {
       var searchText=storeId.rows[i].cells[0].innerHTML;
       if(key=="*"||searchText.match(key))
           storeId.rows[i].style.display='';
       else
           storeId.rows[i].style.display='none';
   }
};
str='<div><select onchange="onSearch()" name="key" id="key"><option value="*">*</option>';
for(var i=0;i < userlist.length;i++)
   str+='<option value="'+userlist[i]+'">'+userlist[i]+'</option>';
str+='</select></div><table id="store" style="white-space: nowrap;"><tr><th>用户</th><th>题号</th><th>标题</th></tr></table>';
document.body.innerHTML = "<h1 style='text-align:center;color:red;font-family:Microsoft Yahei'>内卷监视工具</h1>";
document.body.innerHTML += "<b style='text-align:center;font-family:FangSong'>运筹首页之中,偷袭千里之外&#128517;</b><hr>" + str;
<!-- Output Emoji & Option -->
var colors=['rgb(191, 191, 191)','rgb(254, 76, 97)','rgb(243, 156, 17)','rgb(255, 193, 22)','rgb(82, 196, 26)','rgb(52, 152, 219)','rgb(157, 61, 207)','rgb(14, 29, 105)'];
var name="灰红橙黄绿蓝紫黑";
var lst=Array();
var cnt=0;
function PARSE(First=false)
{
   cnt=(cnt+1)%userlist.length;
   var user=userlist[cnt];
   var Pagenum=1;if(First)Pagenum=pages;
   for(;Pagenum>0;Pagenum--)
   {
       var httpRequest=new XMLHttpRequest();
       httpRequest.open('GET','https://www.luogu.com.cn/record/list?user='+user+'&page='+Pagenum,false);
       httpRequest.send();
       if(httpRequest.readyState==4&&httpRequest.status==200)
       {
           var content=httpRequest.responseText;
           var patten=/decodeURIComponent\(".*?"\)/;
           content=patten.exec(content)[0];
           content=content.substr(20,content.length-22);
           content=JSON.parse(decodeURIComponent(content));
           var prob,col,pid,title;
           for(var i=Math.min(content.currentData.records.result.length-1,19);i>=0;i--)
               if(content.currentData.records.result[i].status==12&&content.currentData.records.result[i].id>lst[cnt])
               {
                   prob=content.currentData.records.result[i].problem;
                   col=colors[prob.difficulty];
                   pid=prob.pid;
                   title=prob.title;
                   document.getElementById('store').childNodes[0].innerHTML
                       +='<tr><td>'+user+'</td><td>'+pid+'</td><td>'+
                           "<a style='color:"+col+"' href='https://www.luogu.com.cn/problem/"+pid+"' target='_blank'>"
                       +title+"</a>"+'</td></tr>';
                   if(!First)
                       alert(user+" 刚刚卷了"+name[prob.difficulty]+"题 "+pid+" "+title);
                   lst[cnt]=content.currentData.records.result[i].id
               }
       }
   }
}
for(var i=0;i < userlist.length;i++)lst[i]=0;
for(var i=0;i < userlist.length;i++)PARSE(true);
window.setInterval(PARSE,cd);

CF 卷王监视:

C++
// Franz DeCalvin???
var userlist = ["rgw2010", "Neil_Qian", "danaqi", "ETO_leader", "Justin666", "wmrqwq", "incra", "LaDex"];      // Users.
var cd = 10000;         // Fetch Delay in miliseconds.
var maxListCount = 10; // Change This Val to 10000 to see what happens :D
var title = "CF内卷监视工具";
var smaller =
    `运筹首页之中,偷袭千里之外&#128517;</b><hr>`;
function onSearch(obj) {
  var storeid = document.getElementById("store");
  var rowslength = storeid.rows.length;
  var key = document.getElementById("key").value;
  for (var i = 1; i < rowslength; i++) {
    var searchtext = storeid.rows[i].cells[0].innerHTML;
    if (key == "*" || searchtext.match(key))
      storeid.rows[i].style.display = "table-row";
    else
      storeid.rows[i].style.display = "none";
  }
};
str =
    `<div class=""><select onchange='onSearch()' name='key' id='key'><option value="*">*</option>`;
for (var i = 0; i < userlist.length; i++)
  str += `<option value="${userlist[i]}">${userlist[i]}</option>`;
str +=
    `</select></div><table id="store" style="white-space: nowrap;"><tr><th>USER</th><th>PROBLEM</th><th>PROBLEM RATING</th><th>PROBLEM NAME</th><th>Tag</th><th>TIME & DATE</th></tr></table>`;
// bootstrap is NICE!
document.body.innerHTML = `
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/popper.js/2.9.3/umd/popper.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.min.js"></script>
<h1 class="display-1" style="text-align:center;color:red;">${title}</h1>`;
document.body.innerHTML +=
    `<small style="text-align:center;">${smaller}</small><hr/>` + str;
var lst = Array();
var cnt = 0;
function getColor(rating) {
  if (rating == undefined) {
    return "black!important";
  }
  if (rating < 1200) {
    return "gray!important";
  }
  if (rating < 1400) {
    return "green!important";
  }
  if (rating < 1600) {
    return "cyan!important";
  }
  if (rating < 1800) {
    return "#4952ce!important"
  }
  if (rating < 2100) {
    return "#a0a!important";
  }
  if (rating < 2500) {
    return "orange!important"
  }
  return "red!important";
}
function parse(first = false) {
  cnt = (cnt + 1) % userlist.length;
  var user = userlist[cnt];
  var httprequest = new XMLHttpRequest();
  httprequest.open("GET",
                   `https://codeforces.com/api/user.status?handle=${
                       user}&from=1&count=${maxListCount}`,
                   false);
  httprequest.send();
  if (httprequest.readyState == 4 && httprequest.status == 200) {
    var content = httprequest.responseText;
    content = JSON.parse(content);
    console.log(content);
    if (content.status == "OK") {
      var result = "";
      content = content.result;
      content.reverse();
      content.forEach((element) => {
        // new date(unixtimestamp*1000).tolocalestring()
        if (element.verdict === "OK" && element.id > lst[cnt]) {
          problem = element.problem;
          pid = problem.contestId.toString() + problem.index;
          name = problem.name;
          rating = problem.rating;
          tags = "";
          problem.tags.forEach(element => {tags += element + ","});
          tags = tags.slice(0, tags.length - 1);
          result =
              `
              <tr>
                  <td>${user}</td>
                  <td>${pid}</td>
                  <td>${rating === undefined ? "UNRATED" : rating}</td>
                  <td><a style="color:${
                  getColor(rating)};" href="https://codeforces.com/contest/${
                  problem.contestId}/problem/${
                  problem.index}" target="_blank">${name}</td>
                  <td>${tags}</td>
                  <td>${
                  new Date(element.creationTimeSeconds * 1000)
                      .toLocaleString()}</td>
              </tr>
` + result;
          if (!first)
            alert(`${user} 刚刚卷了 ${pid} ${name} (rating: ${
                rating === undefined ? "UNRATED" : rating}) QWQ`);
          lst[cnt] = element.id;
        }
      });
      document.getElementById("store").childNodes[0].innerHTML += result;
    }
  }
}
for (var i = 0; i < userlist.length; i++)
  lst[i] = 0;
for (var i = 0; i < userlist.length; i++)
  parse(true);
window.setInterval(parse, cd);