码迷,mamicode.com
首页 >  
搜索关键字:cin    ( 7874个结果
【pb_ds】bzoj1056 [HAOI2008]排名系统 bzoj1862 [Zjoi2006]GameZ游戏排名系统
pb_ds 裸题,写写权值分块试试能不能过……觉得够呛。P.S.cin读入大量数据会RE。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 using namespace __gnu_cx...
分类:其他好文   时间:2014-11-18 10:17:23    阅读次数:404
POJ 2352 Stars
树状数组:注意,这种大数据的题,千万别作死用cin我已经光荣的被T了一次了= =#include#include#includeusing namespace std;const int maxn=32005;int c[maxn],level[maxn],n;int lowbit(int x){ ...
分类:其他好文   时间:2014-11-17 17:23:24    阅读次数:187
分离正整数中的各位数
#include using namespace std; int main() { int a,b; while (cin>>a) { do { b=a%10; a=a/10; cout<<b<<" "; }...
分类:其他好文   时间:2014-11-17 12:29:47    阅读次数:129
刑警的射击成绩
#include using namespace std; int main( ) { int i,a,b,c,d; a=b=c=d=0; do { cin>>i; switch (i) { case 0: case 1: case 2: ...
分类:其他好文   时间:2014-11-17 12:27:01    阅读次数:166
C++的字符输入
字符串的输入有6中方式,这六种方式各有各的特点,我这篇学习笔记是自己的经验总结,没有去探讨内存,函数库等的复杂问题,仅仅是为了实用:第一:cincin一次接受一个字符,所以有的人会选择定义一个字符型数组,然后用cin循环进行输入,但是cin的局限性是:遇到空格就会停止接受字符;第二:ch1=cin....
分类:编程语言   时间:2014-11-15 20:14:08    阅读次数:236
PAT1039
卡两样东西,一个是string的map,另一个是cin,cout谢谢PAT让我感受到了OI的风采 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 1...
分类:其他好文   时间:2014-11-14 21:11:56    阅读次数:194
JAVA的acm用法
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); BigInteger c = new BigInteger("0"); while(cin.h...
分类:编程语言   时间:2014-11-13 10:55:17    阅读次数:228
hdu1381 Crazy Search(hash map)
题目意思: 给出一个字符串和字串的长度,求出该字符串的所有给定长度的字串的个数(不相同)。 题目分析: 此题为简单的字符串哈hash map问题,可以直接调用STL里的map类。map snum; AC代码: #include #include #include using namespace std; int main() { int t,n,nc; cin>>...
分类:其他好文   时间:2014-11-10 23:23:27    阅读次数:172
C++程序设计原理与实践 第五章部分答案
1 #include "../../st.h" 2 3 int main() 4 { 5 vector nums; 6 double t; 7 int n; 8 cout>n;10 cin>>t;11 nums.push_back(t);12 ...
分类:编程语言   时间:2014-11-10 21:41:57    阅读次数:295
算法竞赛入门经典(第八章)
习题8-1 Uva1149 11.8 #include #include using namespace std;int main(){ int n, m, mi; int w[100005]; int num; int l, r; cin>>n>>m; for(int i = 1; i >w[.....
分类:编程语言   时间:2014-11-08 19:41:10    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!