2018年12月的全部文章
@kidultff

PAT-A 真题 – 1078 Hashing

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(key)=key%TSize where TSize& ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1055 The World's Richest

Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this job, but concentrate only on the people in a certain range of a ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1054 The Dominant Color

Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the dominant color. A str ...
  • 0
  • 0
@kidultff

Python实现自动观看新闻/视频赚钱脚本

***** 请妥当使用本脚本,如果因为使用本脚本造成被封号,后果自负 *****0、前言注:本脚本在 小米5手机 上测试通过。其他分辨率的手机自行找像素位置。不修改像素有90%的几率无法正常使用!!附:找像素位置的方法:开发者模式打开指针位置:然后 ...
  • 0
  • 1
@kidultff

PAT-A 真题 – 1050 String Subtraction

Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1−S2 for any given stri ...
  • 0
  • 0