摘要:
数列有序! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 70953 Accepted Submission(s): 30066 Problem 阅读全文
摘要:
字符串统计 Problem Description 对于给定的一个字符串,统计其中数字字符出现的次数。 Input 输入数据有多行,第一行是一个整数n,表示测试实例的个数,后面跟着n行,每行包括一个由字母和数字组成的字符串。 Output 对于每个测试实例,输出该串中数值的个数,每个输出占一行。 S 阅读全文
摘要:
多项式求和 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 63584 Accepted Submission(s): 36569 Problem 阅读全文
摘要:
import java.util.*;class Main{public static void main(String args[]){Scanner cin=new Scanner(System.in);while(cin.hasNext()){int a=cin.nextInt(); int 阅读全文
摘要:
import java.util.*;class Main{public static void main(String args[]){Scanner cin=new Scanner(System.in);final double PI=3.1415927;while(cin.hasNext()) 阅读全文
摘要:
import java.util.*;import java.text.DecimalFormat;class Main{public static void main(String args[]){Scanner cin=new Scanner(System.in);while(cin.hasNe 阅读全文
摘要:
import java.util.Arrays;import java.util.Scanner;public class Main { public static int kase=0,n; public static int [] circles=new int [50]; public sta 阅读全文
摘要:
import java.util.Scanner; public class Sum {public static void main(String args[]) {Scanner cin=new Scanner(System.in); int T,N,num,startp=1,endp=1; T 阅读全文
摘要:
import java.util.Scanner;public class Main { public static void main(String args[]) { Scanner cin=new Scanner(System.in); while(cin.hasNextInt()) { in 阅读全文
摘要:
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in th 阅读全文