Skip to content

Instantly share code, notes, and snippets.

划水中|Surfing Watering...

Shengming Yuan ssysm

划水中|Surfing Watering...
Block or report user

Report or block ssysm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import java.util.ArrayList;
public class DistinctPowers{
//Check if number exist in array
private static boolean isNumberExist(ArrayList<Double> arr, double cmp){
for(double d: arr){
if(d == cmp){
return true;
View PD_CPP.cpp
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
bool isNumExist(vector < double > & vec, double num);
int getDistinctPower(int a_min_base, int a_max_base, int b_min_power, int b_max_power);
void main() {
View niconico_keepalive.js
const axios = require('axios');
const cherrio = require('cheerio');
const WebSocket = require('ws');
.then(res =>
.then(data => {
//parse HTML
const $ = cherrio.load(data);
You can’t perform that action at this time.