有些时候需要用到一些字符的ASC码,到网上查找太麻烦,现在记录下来. 第128-255号为扩展字符(不常用) Dec Hx Oct Char Dec Hx Oct Char Dec Hx Oct Char Dec Hx Oct Char 0 0 000 NUL (null) 32 20 040 SPACE 64 40 100 @ 96 60 140 ` 1 1 001 SOH (start of heading) 33 21 041 ! 65 41 101 A 97 61 141 a 2 2…
A. Numbers Joke time limit per test:2 seconds memory limit per test:64 megabytes input:standard input output:standard output Input The input contains a single integer a (1 ≤ a ≤ 30). Output Output a single integer. Example Input 3 Output 27 题目链接:ht…
public class ASCTest { public static void main(String[] args) { /* 区别这两种 String s = "123"; int a1 = Integer.parseInt(s); a1 = Integer.valueOf(s); String s2 = Integer.toString(a1); s2 = String.valueOf(a1); */ char a = 'A'; int b = charToASC(Strin…