- 博客(9)
- 收藏
- 关注
原创 C++ 中cout精度控制
设置scientific标志导致浮点数字值以科学记数法显示(似乎是以十六进制表示)。当设置fixed时,浮点值以通常记数法显示。缺省时,当设置fixed时,显示六位十进制位。当这些标志都没有设置时,编译程序选择一种适当的方式。setprecsion(n)是格式控制符。由于cout自身的问题,所以输出精度可能不会和原始数据完全吻合。如何做到输出数据尽可能吻合原始数据,我还没找到很好的办法。#in
2016-08-29 11:18:29 5537
原创 hdu 2838
Problem DescriptionSherlock's N (1 ≤ N ≤ 100,000) cows are lined up to be milked in the evening. Each cow has a unique "grumpiness" level in the range 1...100,000. Since grumpy cows are more l
2016-08-08 16:44:54 483
原创 hdu 3635
Dragon BallsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5707 Accepted Submission(s): 2117Problem DescriptionFive hundred
2016-08-08 11:09:52 516
原创 Codeforces #366(div 2)
C. Thortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThor is getting used to the Earth. As a gift Loki gave
2016-08-08 10:49:41 368
原创 hdu3635
Problem Description Have you ever heard the story of Blue.Mary, the great civil engineer? Unlike Mr. Wolowitz, Dr. Blue.Mary has accomplished many great projects, one of which is the Guanghua Bui
2016-08-07 16:28:11 675
原创 hdu2199
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. InputThe first line of the inp
2016-08-07 15:45:29 434
原创 hdu2141
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj
2016-08-07 15:43:04 438
原创 hdu 5775
Bubble SortTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 938 Accepted Submission(s): 549Problem DescriptionP is a permutati
2016-08-05 11:27:39 483
原创 KMP模板
#include#include#include#include#includeusing namespace std;int nnext[10000010];void kmp_pre(const char ch[],int m,int nnext[] ){ int i,j; j=nnext[0]=-1; i=0; while(i<m) {
2016-08-03 15:43:01 367
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人