欢迎大家报名 PKU Helper 开发组招新。
在安排后续面试之前,我们还需要大家再补充一些信息。各个岗位的要求不同,大家可以根据自己的意向,查看相应的部分即可。
如果你希望成为 PKU Helper 开发者,请尝试给出以下三道题目的解答。
第一题为入门水平;第二题考察工程水平;第三题是一道简单的算法题,区分一下 OI 选手。
import argparse | |
import os | |
import numpy as np | |
import math | |
import sys | |
import pdb | |
import torchvision.transforms as transforms | |
from torch.utils.data import DataLoader |
#! /bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=================================================================# | |
# System Required: CentOS 6,7, Debian, Ubuntu # | |
# Description: One click Install ShadowsocksR Server and BBR # | |
# Thanks: @breakwa11 <https://twitter.com/breakwa11> # | |
# Thanks: @Teddysun <i@teddysun.com> # | |
# Thanks: @91yun https://www.91yun.org/archives/2079 # | |
# Improved by Suiyuanjian # |
[ | |
{ | |
"name": "AbbreviationAsWordInNameCheck", | |
"packageName": "com.puppycrawl.tools.checkstyle.checks.naming", | |
"parent": "TreeWalker", | |
"interfaces": [ | |
"com.puppycrawl.tools.checkstyle.api.Configurable", | |
"com.puppycrawl.tools.checkstyle.api.Contextualizable" | |
], | |
"hierarchies": [ |
[ | |
{ | |
"name": "AbbreviationAsWordInNameCheck", | |
"packageName": "com.puppycrawl.tools.checkstyle.checks.naming", | |
"parent": "TreeWalker", | |
"interfaces": [ | |
"com.puppycrawl.tools.checkstyle.api.Configurable", | |
"com.puppycrawl.tools.checkstyle.api.Contextualizable" | |
], | |
"hierarchies": [ |
[ | |
{ | |
"name": "AbbreviationAsWordInNameCheck", | |
"packageName": "com.puppycrawl.tools.checkstyle.checks.naming", | |
"parent": "TreeWalker", | |
"interfaces": [ | |
"com.puppycrawl.tools.checkstyle.api.Configurable", | |
"com.puppycrawl.tools.checkstyle.api.Contextualizable" | |
], | |
"hierarchies": [ |
I was willing to add all the members in GSoC WeChat room today. But I thought it so clumsy after sending 10 friend requests mannually. So I wrote this simple script to help me.
bot.ts
:
import {Wechaty, Room, FriendRequest} from "wechaty";
Wechaty.instance()
.on('scan', (url, code) => {
let loginUrl = url.replace('qrcode', 'l');
require('qrcode-terminal').generate(loginUrl);
public class A10 { | |
public static int createData() { | |
final int random = (int) Math.random(); | |
if (random > 0) { | |
throw new NullPointerException("BufferedImage cannot be null"); | |
} | |
final int sData; | |
switch ((int) Math.random()) { | |
case 0: | |
sData = 0; |
public class A7 { | |
void dropLocationForPoint() { | |
final int parent; | |
final int random = (int) Math.random(); | |
switch(random) { | |
case 0: | |
case 1: | |
if (random > 0) { | |
} else { | |
} |
public class A4 { | |
public String toString() { | |
final String ret; | |
final int random = (int) Math.random(); | |
switch (random) { | |
case 0: | |
ret = "EOF"; | |
break; | |
case 1: | |
ret = "EOL"; |