- 博客(21)
- 资源 (1)
- 收藏
- 关注
原创 Scala if else 语法是可以不用重载直接进行变量类型判断
当实习生一个多月了,之后会慢慢总结scala遇到的一些坑记得刚开始敲scala时,遇到了一个bug,死活都找不到出处,后来在捷哥的帮助下找到了出处大约是这样一个bug,这一段代码是可以编译通过的,之前项目c++、java等if判断类型错误时是编译失败的,除非写运算符重载。大意了...
2020-12-24 16:53:41
106
1
原创 2018ACM-ICPC南京赛区网络赛: J. Sum
J. SumA square-free integer is an integer which is indivisible by any square number except 11. For example, 6 = 2 \cdot 36=2⋅3 is square-free, but 12 = 2^2 \cdot 312=22⋅3 is not, because 2^222 is a ...
2018-09-03 15:06:04
244
原创 hdu 6437 Problem L.Videos
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 458 Accepted Submission(s): 224Problem DescriptionC-bacteria takes charge of two ki...
2018-08-23 16:18:21
436
原创 hdu 6432
Problem G. CyclicTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 159 Accepted Submission(s): 106Problem DescriptioCount the number o...
2018-08-23 09:32:03
458
原创 hdu 6425 Rikka with Badminton
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 231 Accepted Submission(s): 147Problem DescriptionIn the last semester, Rikka joined t...
2018-08-21 11:15:58
356
原创 hdu 6415 Rikka with Nash Equilibrium
Problem DescriptionNash Equilibrium is an important concept i game theory.Rikka and Yuta are playing a simple matrix game. At the beginning of the game, Rikka shows an n×m integer matrix A. And the...
2018-08-21 10:47:08
268
原创 hdu 6400 Parentheses Matrix
Problem DescriptionA parentheses matrix is a matrix where every element is either '(' or ')'. We define the goodness of a parentheses matrix as the number of balanced rows (from left to right) and c...
2018-08-18 11:59:59
191
原创 hdu 6397 Character Encoding
Problem DescriptionIn computer science, a character is a letter, a digit, a punctuation mark or some other similar symbol. Since computers can only process numbers, number codes are used to represen...
2018-08-16 09:54:49
217
原创 hdu 6359 Sequence
SequenceTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1338 Accepted Submission(s): 487 Problem DescriptionLet us define a sequenc...
2018-08-14 16:19:43
318
原创 hdu 6370 Werewolf
WerewolfTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1154 Accepted Submission(s): 314Problem Description"The Werewolves" is a popul...
2018-08-09 14:34:02
187
原创 hdu 6351 Beautiful Now
Beautiful NowTime Limit: 5000/2500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1721 Accepted Submission(s): 646Problem DescriptionAnton has a positive...
2018-08-07 15:36:51
400
原创 hdu 6333 Problem B. Harvest of Apples
Problem DescriptionThere are n apples on a tree, numbered from 1 to n.Count the number of ways to pick at most m apples.InputThe first line of the input contains an integer T (1≤T≤105) denoting...
2018-08-02 15:50:19
238
原创 hdu 6319 Problem A. Ascending Rating
Problem DescriptionBefore the start of contest, there are n ICPC contestants waiting in a long queue. They are labeled by 1 to n from left to right. It can be easily found that the i-th contestant's...
2018-07-31 13:52:33
173
原创 HDU 6315 Naive Operations
Naive OperationsTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 502768/502768 K (Java/Others)Total Submission(s): 1103 Accepted Submission(s): 450Problem DescriptionIn a galaxy far, ...
2018-07-26 16:20:10
359
1
原创 HDU 6318 Swaps and Inversions
2018 Multi-University Training Contest 2 1010 Swaps and InversionsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 752 Accepted Submissio...
2018-07-26 16:01:10
375
原创 hdu 6299
Problem DescriptionChiaki has n strings s1,s2,…,sn consisting of '(' and ')'. A string of this type is said to be balanced:+ if it is the empty string+ if A and B are balanced, AB is balanced,+ i...
2018-07-24 16:58:51
498
原创 hdu 6301
问题描述:Chiaki has an array of n positive integers. You are told some facts about the array: for every two elements ai and aj in the subarray al..r (l≤i<j≤r), ai≠ajholds.Chiaki would like to find a l...
2018-07-24 16:13:54
628
1
原创 CodeForces 520B Two Buttons
题意:给你两个数;要你计算让第一个数变到第二个数的最小步骤。第一个数能翻倍或减一。思路:队列+ bfs;#include<stdio.h>#include<iostream>#include<queue>using namespace std;int mark [100005], ans;void bfs (int n, int m) { qu...
2018-05-19 10:32:58
301
2
原创 CodeForces 519C A and B and Team Training
A and B are preparing themselves for programming contests.An important part of preparing for a competition is sharing programming knowledge from the experienced members to those who are just beginning...
2018-05-19 10:23:08
264
原创 CodeForces 519B A and B and Compilation Errors
A and B are preparing themselves for programming contests.B loves to debug his code. But before he runs the solution and starts debugging, he has to first compile the code.Initially, the compiler disp...
2018-05-19 10:06:12
191
原创 CodeForces 5A Chat Server's Outgoing Traffic
Polycarp is working on a new project called "Polychat". Following modern tendencies in IT, he decided, that this project should contain chat as well. To achieve this goal, Polycarp has spent several h...
2018-05-18 22:38:14
153
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人