Question
Write a program which reads an integer n and draws a Koch curve based on recursive calles of depth n.
The Koch curve is well known as a kind of fractals.
You can draw a Ko……继续阅读 »
站点默认
7年前 (2020-04-11) 8160浏览 0评论
0个赞
Question
Write a program which reads a sequence A of n elements and an integer M, and outputs “yes” if you can make M by adding elements in A, otherwise “no”……继续阅读 »
站点默认
7年前 (2020-04-11) 3903浏览 36评论
1个赞
Question
Sample Input 1
5 3
8
1
7
3
9
Sample Output 1
10
Sample Input 2
4 2
1
2
2
6
Sample Output 2
6
Meaning
Solution
Coding
Summary
……继续阅读 »
站点默认
7年前 (2020-04-09) 9546浏览 7评论
0个赞
Question
Your task is to write a program of a simple dictionary which implements the following instructions:
insert str: insert a string str in to the dictionary
find str: if the d……继续阅读 »
站点默认
7年前 (2020-04-09) 3033浏览 2评论
1个赞
Question
You are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers in T which are also in the set S……继续阅读 »
站点默认
7年前 (2020-04-09) 5604浏览 54评论
2个赞
Question
You are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers in T which are also in the set S……继续阅读 »
站点默认
7年前 (2020-04-09) 5448浏览 31评论
0个赞
Question
Assume that rain is falling endlessly in the region and the water overflowing from the region is falling in the sea at the both sides. For example, for the above cross-se……继续阅读 »
站点默认
7年前 (2020-04-09) 2740浏览 25评论
0个赞
Question
Stack
Coding
#include<iostream>
#include<stack>
#include<cstdio>
#include<stdlib.h>
using namespace std;
st……继续阅读 »
站点默认
7年前 (2020-04-07) 2452浏览 18评论
0个赞
Question
Your task is to implement a double linked list.
Write a program which performs the following operations:
insert x: insert an element with key x into the front of the list.……继续阅读 »
站点默认
7年前 (2020-04-05) 6104浏览 44评论
2个赞
Question
Time Limit : 1 sec , Memory Limit : 131072 KB , isSolved :
There are n processes in a queue. Each process has namei and timei. The round-robin scheduling handles the proce……继续阅读 »
站点默认
7年前 (2020-04-05) 1850浏览 8评论
0个赞
Question
Reverse Polish notation is a notation where every operator follows all of its operands. For example, an expression (1+2)*(5+4) in the conventional Polish notation can be r……继续阅读 »
站点默认
7年前 (2020-04-04) 1438浏览 2评论
0个赞
Question
1 insertionSort(A, n, g)
2 for i = g to n-1
3 v = A[i]
4 j = i - g
5 while j >= 0 && A[j……继续阅读 »
站点默认
7年前 (2020-04-04) 3839浏览 26评论
0个赞
Question
Let’s arrange a deck of cards. There are totally 36 cards of 4 suits(S, H, C, D) and 9 values (1, 2, … 9). For example, ‘eight of heart’ is represe……继续阅读 »
站点默认
7年前 (2020-03-28) 1591浏览 1评论
0个赞
Question
Write a program of the Selection Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode:
……继续阅读 »
站点默认
7年前 (2020-03-28) 21904浏览 1评论
0个赞
Question
Write a program of the Bubble Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode:
……继续阅读 »
站点默认
7年前 (2020-03-28) 1439浏览 1评论
0个赞
Write a program of the Insertion Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode:
……继续阅读 »
站点默认
7年前 (2020-03-28) 3003浏览 37评论
0个赞
好久没写博客了,,,算了算应该有一个多月了把。话不多说,因为这次疫情,我们需要每天易班签到,我又起不来,不过还行现在以及可以12点后签到了,之前学校设置8点前都不让签到。。。。
直接贴代码了。。。
#coding=utf-8
from selenium import webdriver
……继续阅读 »
站点默认
7年前 (2020-03-05) 27986浏览 236评论
9个赞
例如:
from MyQR import myqr
myqr.run(words='http://7m1.cn/02/zhaopian/index.asp', picture='pig.gif', colorized=True, save_name="pig.gif")
……继续阅读 »
站点默认
7年前 (2020-01-06) 135050浏览 1评论
7个赞
1366*768分辨率图片地址
https://api.dujin.org/bing/1366.php
1920*1080分辨率图片地址
https://api.dujin.org/bing/1920.php
二次元动漫
https://api.ixiaowai.cn/api/api.php
menhear酱
https://api.ixiaowai.……继续阅读 »
站点默认
7年前 (2020-01-03) 2753浏览 1评论
1个赞
在前端开发中,F12审查元素的情况下,大家都可以随机更改一部分页面的代码,注入恶意JS等等,这种情况避免也不难,虽然还能看到一部分H5源码,但是无法修改。
屏蔽F12 审查元素
<script>
document.onkeydown = function () {
……继续阅读 »
站点默认
7年前 (2020-01-03) 2382浏览 11评论
1个赞