自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 1015 Reversible Primes (20分)

Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.Now given any two positive integersN(<10​5​​)...

2020-12-04 10:21:06 63

原创 1010 Radix (25分)

Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer isyes, if 6 is a decimal number and 110 is a binary number.Now for any pair of positive integersN​1​​andN​2​​, your task is to find the radix of ...

2020-12-01 11:55:25 68

原创 十进制,十六进制转二进制

import java.util.Scanner;public class ListTest { public static void main(String[] args) { Scanner in = new Scanner(System.in); String num1 = in.next(); changeTo2Binary(16, num1)) } private static int[] radixs = new.

2020-11-25 20:24:57 119

原创 PAT优化输入超时

1007Maximum Subsequence Sum(25分)Scanner输入效率太低,改用BufferedReader,再将字符串转化为intBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;publi..

2020-11-23 10:29:08 108

原创 dijkstra算法的应用

使用dijkstra算法计算最短路径数和最短路径长度例1:1003Emergency:Input Specification:Each input file contains one test case. For each test case, the first line contains 4 positive integers:N(≤500) - the number of cities (and the cities are numbered from 0 toN−1),M- ...

2020-10-08 20:39:52 429

原创 单词记录

polynomial[ˌpɒli'nəʊmiəl] 多项式

2020-10-08 16:13:39 44

原创 tip:java设置小数转字符串的小数位数

java设置小数转字符串的小数位数 DecimalFormat df = new DecimalFormat("#.0"); Double value = entry.getValue(); String v = df.format(value);

2020-10-08 15:55:39 100

原创 使用Puppeteer导出PDF文件

https://github.com/puppeteer/puppeteer项目以前是使用phantomjs运行JS,生成PDF文件。后来因为phantomjs不维护了,改使用Puppeteer。Puppeteer是node module,需要在nodeJS环境下运行。所需文件:node.exe、JS文件(test.js)test.js:const puppeteer = require('puppeteer');(async () => { const browser

2020-05-22 18:43:15 883

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除