/**
?*?@brief?Codeforces?Round?#278?(Div.?2)?c
?*?@file?c.c
?*?@author?面码
?*?@created?2014/11/25?14:15
?*?@edited??2014/11/25?14:15
?*?@type?brute
?*
?*/
#include?<st...
分类:
其他好文 时间:
2014-11-25 14:39:53
阅读次数:
150
5.怎么使float保留两位小数或多位小数*
两种方法:
import java.math.*;
……
方法1:
float f = 34.232323;
BigDecimal b = new BigDecimal(f);
float f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).floatValue();
// b.setScale(2,...
分类:
其他好文 时间:
2014-11-25 14:38:56
阅读次数:
204
#include#includeusing namespace std;int p[1000001],q[1000001];int main(){ int n,x,y; memset(q,0,sizeof(q)); cin>>n; while(n) { c...
分类:
其他好文 时间:
2014-11-25 10:37:47
阅读次数:
230
#include#include#include#includeusing namespace std;int flag1[5000];int flag2[5000];int flag3[5000];int main(){ memset(flag1,0,sizeof(flag1)); m...
分类:
其他好文 时间:
2014-11-25 10:32:04
阅读次数:
168
#include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll;using namespace std;/...
分类:
其他好文 时间:
2014-11-25 10:28:24
阅读次数:
223
Codeforces Round #277.5 (Div. 2)
A. SwapSort
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
...
分类:
编程语言 时间:
2014-11-25 01:59:54
阅读次数:
140
A直接暴力好了。 1 #include 2 typedef long long ll; 3 using namespace std; 4 5 int pan(ll x) 6 { 7 while (x) 8 { 9 if (x%10==8) return 1;10 ...
分类:
其他好文 时间:
2014-11-25 01:41:39
阅读次数:
223
/**
?*
?*?@brief?Codeforces?Round?#278?(Div.?2)?b
?*?@file?b.c
?*?@author?mianma
?*?@created?2014/11/24?17:52
?*?@edited??2014/11/18?17:52
?*?@type?brute
?*?
?*?@note...
分类:
其他好文 时间:
2014-11-24 22:49:58
阅读次数:
279
A - Team Olympiad
贪心水题。。都从第一个开始取即可。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define LL __int64
int ...
分类:
其他好文 时间:
2014-11-24 22:39:04
阅读次数:
257
这题看别人的。就是那么诚实。http://www.cnblogs.com/zhyfzy/p/4117481.htmlB. QueueDuring the lunch break allnBerland State University students lined up in the food co...
分类:
其他好文 时间:
2014-11-24 20:44:26
阅读次数:
225