#include #include using namespace std;int main(int argc, char *argv[]){ double a,b; cin>>a; while (cin>>b) { if (b==999) { ...
分类:
其他好文 时间:
2014-08-02 01:27:12
阅读次数:
297
#include #include using namespace std;int main(int argc, char *argv[]){ int i,n,m; string s; while(cin>>m) { while(m--) { cin>>s; n=1; if(s.si...
分类:
其他好文 时间:
2014-08-01 22:59:32
阅读次数:
352
-#include using namespace std;int main(int argc, char *argv[]){ int n,i,sum; string s; cin>>n; while(n--) { cin>>s; for(i=0,sum=1;s[i];i++) { if(...
分类:
其他好文 时间:
2014-08-01 22:51:42
阅读次数:
214
ctrl +z 的使用#includeusing namespace std; main(){ int num,sum=0; while(cin>>num) { sum+=num; } cout u...
分类:
其他好文 时间:
2014-08-01 22:43:12
阅读次数:
204
整型数据#include #include #include using namespace std;int main( ){ string s; int x; int sum; while (getline(cin, s)) { stringstream...
分类:
编程语言 时间:
2014-08-01 04:35:51
阅读次数:
377
#include #include using namespace std; int main(){ long a,b,c; int i,flag; bool is_positive; char result[9]; while(cin>...
分类:
其他好文 时间:
2014-07-31 02:38:15
阅读次数:
215
C++的流插入运算符“>”是C++在类库中提供的,所有C++编译系统都在类库中提供输入流类istream和输出流类ostream。cin和cout分别是istream类和ostream类的对象。在类库提供的头文件中已经对“>”进行了重载,使之作为流插入运算符和流提取运算符,能用来输出和输入C++标准...
分类:
编程语言 时间:
2014-07-30 23:25:25
阅读次数:
678
#includeusing namespace std;void count(){ int value; int cnt; int curvalue; if(cin>>curvalue) { cnt=1; while(cin>>value) ...
分类:
其他好文 时间:
2014-07-30 20:34:44
阅读次数:
137
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1248程序:#includeusing namespace std;int main(){ int a,b,n,m,i; cin>>n; while(n--) { c...
分类:
其他好文 时间:
2014-07-30 11:30:23
阅读次数:
236
输入nn 个数 最大数 最小数Input51 5 2 3 6Output1 6#include#includeusing namespace std;int main(){ int n, i, a[1000]; while(cin>>n) { for(i=0; i>...
分类:
其他好文 时间:
2014-07-29 11:51:36
阅读次数:
287