能力说明:
精通JVM运行机制,包括类生命、内存模型、垃圾回收及JVM常见参数;能够熟练使用Runnable接口创建线程和使用ExecutorService并发执行任务、识别潜在的死锁线程问题;能够使用Synchronized关键字和atomic包控制线程的执行顺序,使用并行Fork/Join框架;能过开发使用原始版本函数式接口的代码。
暂时未有相关云产品技术能力~
GitHub: https://github.com/chenhaoxiang
Problem Description Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets.
Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.
Problem Description 统计给定文本文件中汉字的个数。 Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。 Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。
Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black.
Description Computing the exact number of ways that N things can be taken M at a time can be a great challenge when N and/or M become very large.
Description One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to ...
Description You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way.
Problem Description Farmer John made a profit last year! He would like to invest it well but wonders how much money he will make.
Problem Description A common typing error is to place the hands on the keyboard one row to the right of the correct position.
Problem Description In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the foll...
Problem Description 给定一个日期,输出这个日期是该年的第几天。 Input 输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。
Problem Description Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough.
Problem Description 数列的定义如下: 数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和。 Input 输入数据有多组,每组占一行,由两个整数n(n
Problem Description 统计给定的n个数中,负数、零和正数的个数。 Input 输入数据有多组,每组占一行,每行的第一个数是整数n(n
Problem Description 给定一段连续的整数,求出他们中所有偶数的平方和以及所有奇数的立方和。 Input 输入数据包含多组测试实例,每组测试实例包含一行,由两个整数m和n组成。
Problem Description 给你n个整数,求他们中所有奇数的乘积。 Input 输入数据包含多个测试实例,每个测试实例占一行,每行的第一个数为n,表示本组数据一共有n个,接着是n个整数,你可以假设每组数据必定至少存在一个奇数。
Problem Description 输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下: 90~100为A; 80~89为B; 70~79为C; 60~69为D; 0~59为E; Input 输入数据有多组,每组占一行,由一个整数组成。
Problem Description 求实数的绝对值。 Input 输入数据有多组,每组占一行,每行包含一个实数。 Output 对于每组输入数据,输出它的绝对值,要求每组数据输出一行,结果保留两位小数。
Problem Description 根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。
Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。
Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow.
Problem Description Your task is to Calculate a + b. Input The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
Problem Description Your task is to calculate the sum of some integers. Input Input contains multiple test cases, and one case one line.
Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow.
Problem Description Your task is to Calculate the sum of some integers. Input Input contains multiple test cases.
Problem Description Your task is to Calculate a + b. Input Input contains multiple test cases.
Problem Description Your task is to Calculate a + b. Input Input contains an integer N in the first line, and then N lines follow.
Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners.
Problem Description Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough.
Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + … + n.
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 513689 Accepted Submission(s): 162876 Problem Description Calculate A + B.
The Triangle Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other) Total Submission(s) : 23 Accepted Submiss...
Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc.
Problem Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set.
/** 口袋里有红、黄、蓝、白、黒5种颜色的球若干,每次从口袋中先后取出3个球,问得到3种不同颜色的 球的可能取法,输出每种排列的情况 **/ #include #include int main() { enum Color {red,yellow,blue,w...
长度为n的环状串有n种表示法,分别为从某个位置开始顺时针得到。 求字典序最小的,也就是最小表示 #include #include #define maxn 105 int less(char *s,int p,int q) { int i,n; n=s...
Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.
算法竞赛入门经典第二版p52 例题3-5: 如果x+x的各个数字之和得到y,就是说x是y的生成元。给出n(1
样例输入: 4 样例输出: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4 #include #include #include int main() { int a[50][50]; in...
/**有n个灯,编号为1-n。第一个人把所以灯打开,第二个人按下 所有编号为2的倍数的开关,第三个人按下3的倍数的开关,依次类推, 一共有k个人,问最后有哪些灯开着? 样例输入: 7 3 样例输出: 1 5 6 7 **/ #include #includ...
Problem Description RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。
Problem Description Given a sequence a[1],a[2],a[3]……a[n], your job is to calculate the max sum of a sub-sequence.
排序算法(Sorting Algorithm)是计算机算法的一个组成部分。 排序的目标是将一组数据 (即一个序列) 重新排列,排列后的数据符合从大到小 (或者从小到大) 的次序。
#include #include void check(int *p[]) { int i; printf("没及格的成绩有:\n"); for(i=0;i
#include #include #include void sortt(char *name[],int n) { int i,j; char *temp; for(i=0;istr2,则返回正数; 若str1
请自己理解,比较简单 /**对前面那个问题,输出有不及格成绩的学生的所有成绩**/ #include #include int main() { float a[3][4]={{50,99,80,50},{55,60,85,90},{10,54,74,26}...
/**有a个学生,每个学生有b门课程的成绩。要求在用户输入学生序号以后, **/ #include #include int main() { float *aa(int (*p)[4],int n); float a[3][4]={{50,99,80,50...
重定向方式读写文件 #include #define LOCAL int main() { #ifdef LOCAL freopen("input.txt","r",stdin); //使得scanf从文件input.txt读入 //r只读,如果文件不存在,出错 freopen("output.txt","w",stdout); //使得printf写入文件output.txt //w只写,如果文件不存在,建立新文件 #endif //只有定义了符号LOCAL,才编译2条freopen语句。
/**有2个整数a,b,有用户输入1,2,或3,如输入1, 程序就给出a和b中大者,输入2,就给出a和b中小者, 输入3,就给出a和b的和**/ #include #include int main() { int f(int x,int y,int (*p)(in...
/**输入2个整数,然后让用户选择1或2,选1时调用max函数,输出2者中的大数, 选2时调用min函数,输出2者中的小数**/ #include #include int main() { int max(int x,int y); int min(int...