
JAVA
文章平均质量分 58
秦 时
这个作者很懒,什么都没留下…
展开
-
A+B for Input-Output Practice (VI)
DescriptionYour task is to calculate the sum of some integers.InputInput contains multiple test cases, and one case one line. Each case starts with an integer N, and then N integers follow in the same line.OutputFor each test case you should outp原创 2021-05-27 21:38:09 · 325 阅读 · 0 评论 -
A+B for Input-Output Practice (V)
DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line.OutputFor each group of inpu原创 2021-05-27 21:30:41 · 186 阅读 · 0 评论 -
A+B for Input-Output Practice (III)
DescriptionYour task is to Calculate a + b.InputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be pro原创 2021-05-27 21:21:13 · 166 阅读 · 0 评论 -
A+B for Input-Output Practice (II)
DescriptionYour task is to Calculate a + b.InputYour task is to Calculate a + b.OutputFor each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.SampleInput.原创 2021-05-27 21:08:19 · 184 阅读 · 0 评论 -
A+B for Input-Output Practice (I)
DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners.You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aimInput原创 2021-05-27 20:59:40 · 134 阅读 · 0 评论 -
JAVA:位运算符的简单介绍
位运算符的种类有7中,分别是:“按位与”运算符(&)、“按位或”运算符(|)、“按位异或”运算符(^)、“按位取反”运算符(~)、“右移位”运算符(>>)、“左移位”运算符(<<)、“无符号右移位”运算符(>>>)。接下来我们详细介绍一下他们各自的作用。1.“按位与”运算符(&):“按位与”运算符“&”为双目运算符,其运算法则是:先将参与运算的数据转化为二进制数,然后低位对齐,高位不足补0,如果对应的二进制位都是1,则结果为1,否则结果为原创 2021-05-15 16:03:52 · 165 阅读 · 0 评论 -
JAVA的标识符和关键字
标识符标识符(Identifier):可以简单地理解为一个名字,是用来标识类名、变量名、方法名、数组名、文件名的有效字符序列。这里我们需要注意,JAVA语言规定标识符由任意顺序的字母、下划线(_)、美元符号($)和数字组成,并且第一个字符不能是数字。合法的标识符:birthday User_name _system_varl $max非法的标识符:...原创 2021-05-14 15:10:32 · 920 阅读 · 1 评论 -
JAVA错误示例:Exception in thread “main“ java.lang.Error: Unresolved compilation problem:
JAVA错误示例当我们初次接触Eclipse时会犯很多错误,就比如Exception in thread "main" java.lang.Error: Unresolved compilation problem:出现这种情况的原因是package的值与src子目录的值是不同的,Eclipse才会提示为解决编译问题,Eclipse是不需要去手动编...原创 2021-05-09 22:17:25 · 23071 阅读 · 1 评论 -
JAVA语言的发展历史
JAVA语言的历史要追溯到1991年,美国Sun公司的Patrick Naughton及其伙伴James Gosling 带领的小组(Green项目组)准备研发一种应用于智能家电的小型语言。但面临了诸多的困难,比如:家电的处理能力和内存空间有限,所以要求这门语言要足够的简练且短小,紧凑。而且,由于不同的家电生产商会选择不同的CPU,因此,这种语言还不能和特定的体系结构捆绑在一起,也就是说这种语言必须具有跨平台的能力。 项目开始时,项目组使用的时C/C++语言编译器着手,但在改写的...原创 2021-05-09 15:27:30 · 874 阅读 · 1 评论