PAT甲级
Dijkstra Lee
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT (Advanced Level) 1035 Password (20分)JAVA实现
Sample Input 1: 3 Team000002 Rlsp0dfa Team000003 perfectpwd Team000001 R1spOdfa Sample Output 1: 2 Team000002 RLsp%dfa Team000001 R@spodfa Sample Input 2: 1 team110 abcdefg332 Sample Output 2: ...原创 2020-01-16 11:34:35 · 197 阅读 · 0 评论 -
PAT (Advanced Level) 1031 Hello World for U (20分)JAVA实现
Sample Input: helloworld! Sample Output: h ! e d l l lowor import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ...原创 2020-01-16 10:48:57 · 169 阅读 · 0 评论 -
PAT (Advanced Level) 1027 Colors in Mars (20分)JAVA实现
Sample Input: 15 43 71 Sample Output: #123456 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //System.out.prin...原创 2020-01-16 09:55:02 · 191 阅读 · 0 评论 -
PAT (Advanced Level) 1019 General Palindromic Number (20分)JAVA实现
Sample Input 1: 27 2 Sample Output 1: Yes 1 1 0 1 1 Sample Input 2: 121 5 Sample Output 2: No 4 4 1 import java.util.Scanner; public class Main{ public static void main(String[] args)...原创 2020-01-15 23:54:48 · 170 阅读 · 0 评论 -
PAT (Advanced Level) 1023 Have Fun with Numbers (20分)JAVA实现
tips with no duplication 没有重复 permutation 排列 given number 给定的数字 original number 原来的数字 Sample Input: 1234567899 Sample Output: Yes 2469135798 package PAT_Advanced_Level; import java.math.BigInteg...原创 2020-01-15 23:52:59 · 211 阅读 · 0 评论 -
PAT (Advanced Level) 1015 Reversible Primes (20分)JAVA解法
Sample Input: 73 10 23 2 23 10 -2 Sample Output: Yes Yes No import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void...原创 2020-01-15 19:46:59 · 191 阅读 · 0 评论 -
PAT (Advanced Level) 1011 World Cup Betting (20分)JAVA解法
times 乘以 odd 奇数 odd assigned 奇数赋值 accurate up to 2 decimal places 精确到2小数点 Sample Input: 1.1 2.5 1.7 1.2 3.1 1.6 4.1 1.2 1.1 Sample Output: T T W 39.31 package PAT_Advanced_Level; import java.tex...原创 2020-01-15 18:04:50 · 204 阅读 · 0 评论
分享