![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 77
WYYZ5
这个作者很懒,什么都没留下…
展开
-
ACM —— 1004 Financial Management
解题代码:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); float sum = 0; for (int i = 0; i < 12; i++) {原创 2015-09-07 17:29:23 · 878 阅读 · 0 评论 -
ACM —— 1014 Dividing
解题代码:DFSimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int[] num; int count = 0; while (true) {原创 2015-09-23 16:00:29 · 638 阅读 · 0 评论 -
ACM —— 1013 Counterfeit Dollar
解题代码:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int num = stdin.nextInt(); boolean[] flag; int[原创 2015-09-22 16:14:28 · 499 阅读 · 0 评论 -
ACM —— 1012 Joseph
解题代码:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int k; int[] joseph = new int[14]; while ((k =原创 2015-09-22 14:00:02 · 494 阅读 · 0 评论 -
ACM —— 1011 Sticks
解题代码:import java.util.Arrays;import java.util.Scanner;public class Main { static int num; static int[] sticks; static boolean[] vists; public static void main(String[] args) { S原创 2015-09-21 16:48:33 · 792 阅读 · 0 评论 -
ACM —— 1006 Biorhythms
解题代码:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int p,e,i,d,n; int num = 0; while (((p = stdin.原创 2015-09-08 10:42:53 · 515 阅读 · 0 评论 -
ACM —— 1008 Maya Calendar
解题代码:import java.util.HashMap;import java.util.Scanner;public class Main { static String[] numTzolkin = new String[] {"imix", "ik", "akbal", "kan", "chicchan", "cimi", "manik", "lamat", "m原创 2015-09-08 18:00:16 · 659 阅读 · 0 评论 -
ACM —— 1001 Exponentiation
解题代码:import java.math.BigDecimal;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); while(stdin.hasNext())原创 2015-09-06 14:11:20 · 538 阅读 · 0 评论 -
ACM —— 1003 Hangover
解题代码:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); float c; while ((c = stdin.nextFloat()) != 0.00)原创 2015-09-07 16:23:44 · 649 阅读 · 0 评论 -
ACM —— 1010 STAMPS
解题代码:package acm1010;import java.util.Arrays;import java.util.Scanner;public class Main { private static int[] mValues; private static int[] mTime; private static int[] mSolve; p原创 2015-09-11 13:15:35 · 687 阅读 · 0 评论 -
ACM —— 1002 487-3279
解题代码:import java.util.Arrays;import java.util.HashMap;import java.util.Map;import java.util.Scanner;public class Main { static Map mMap = new HashMap(); //初始化映射关系 /** A, B原创 2015-09-07 13:25:29 · 669 阅读 · 0 评论 -
ACM —— 1009 Edge Detection
解题代码:import java.util.Arrays;import java.util.HashMap;import java.util.Scanner;public class Main { static int mWidth, mHight; static int[][] pairs = new int[1000][2]; static HashMap原创 2015-09-09 18:01:12 · 941 阅读 · 0 评论 -
ACM —— 1007
解题代码:import java.util.ArrayList;import java.util.Collections;import java.util.Iterator;import java.util.List;import java.util.Scanner;public class Main { static class Node implements原创 2015-09-08 15:00:59 · 549 阅读 · 0 评论 -
ACM —— 1005 I Think I Need a Houseboat
解题代码:import java.util.Scanner;public class Main { public final static float PI = 3.1415926f; public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int num原创 2015-09-07 18:10:20 · 453 阅读 · 0 评论 -
ACM —— 1015 Jury Compromise
解题代码:import java.util.Arrays;import java.util.Scanner;public class Main { //dp[j][k]:取j个候选人,使其辩控差为k的所有方案中,辩控和最大的方案的辩控和 private static int[][] dp = new int[21][801]; //记录所选定的候选人的编号 pri原创 2015-09-24 16:50:38 · 514 阅读 · 0 评论