![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cf
msg1_
苟有恒,何必三更眠五更起,最无益,莫过一日曝十日寒
展开
-
大整数运算 (java BigInteger类)
java大整数类的运算常常包括:加、减、乘、除,求余数、比较大小、高精度幂、max()函数,min()函数,abs()函数,gcd()函数等等。当我们遇到这类问题时用C或C++解决起来会觉得很麻烦(不过还是要尽量掌握),而java则给我们提供了非常方便的BigInteger类(大整数类)。 import java.util.Scanner; import java.math.*; public原创 2018-01-25 23:28:38 · 996 阅读 · 0 评论 -
Codeforces Round #452 (Div. 2) B. Months and Years
http://codeforces.com/contest/899/problem/B B. Months and Years(暴力) time limit per test 1 second memory limit per test 256 megabytes input standard input output standard out原创 2017-12-18 20:36:40 · 310 阅读 · 0 评论 -
Code Forces 525C Ilya and Sticks
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 525C Description In the evening, after the contest Ilya was bored, and he原创 2018-01-21 16:37:29 · 194 阅读 · 0 评论 -
Educational Codeforces Round 38 (Rated for Div. 2)A. Word Correction
题目链接:http://codeforces.com/contest/938/problem/A题目大意:规定字母a,e,i,o,u,y为元音字母,给我们长度为n的字符串s,如果s中有连续两个元音字母,则删除后一个元音字母,直到s中无两个连续的元音字母,输出s。思路分析:刚开始我考虑用暴力的方法,遍历字符串s ,每找到有两个连续的元音字母,就删除后一个元音字母,不过发现删除字符的代价太大了,每删除...原创 2018-02-17 11:21:28 · 177 阅读 · 0 评论