#include
using namespace std;
bool existthesame(int *a,int n1,int *b,int n2);
int main()
{
int a[50];
int b[50];
int i, n1, n2;
cin>>n1;
for(i=0; i>...
分类:
其他好文 时间:
2014-12-11 17:31:59
阅读次数:
137
/* Copyright (c) 2014, 烟台大学计算机学院
* All rights reserved.
* 文件名称:test.cpp
* 作者:陈丹妮
* 完成日期:2014年 12 月 11 日
* 版 本 号:v1.0
*
* 问题描述: 逆序输出数组
* 输入描述: 输入几个整型数
* 程序输出: 逆序输出数组
*/
#include
...
分类:
编程语言 时间:
2014-12-11 17:30:11
阅读次数:
145
SGU - 123
The sum
Time Limit: 250MS
Memory Limit: 4096KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Here is your second problem, keep calm and solve ...
分类:
其他好文 时间:
2014-12-11 17:23:40
阅读次数:
204
UVA - 10250
The Other Two Trees
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Problem E
The Other Two Trees
Input: st...
分类:
其他好文 时间:
2014-12-10 21:23:53
阅读次数:
263
/*
* Copyright (c) 2014, 烟台大学计算机学院
* All rights reserved.
* 文件名称:test.cpp
* 作 者:刘畅
* 完成日期:2014 年 12 月 10 日
* 版 本 号:v1.0
*
* 问题描述:指针与数组;
* 输入描述:啥也不用输;
* 程序输出:输出该输出的。
。
...
分类:
编程语言 时间:
2014-12-10 16:25:42
阅读次数:
185
经典剪枝题目,注释的别人代码。还是得自己多敲。反思,反思! 1 #include "iostream" 2 #include "algorithm" 3 #include "memory.h" 4 using namespace std; 5 6 int sticks[64],n,len,num;....
分类:
其他好文 时间:
2014-12-09 01:49:04
阅读次数:
131
#include<iostream>
usingnamespacestd;
template<classT>
classTest;//模板类前置声明
template<classT>
ostream&operator<<(ostream&out,constTest<T>&obj);//模板类友元前置声明
template<classT>
classTest
{
public:
fri..
分类:
其他好文 时间:
2014-12-08 12:31:42
阅读次数:
124
//简单搜索,只要走遍所有可达的路径BFS版:#include "iostream"#include "cstdio"#include "memory.h"#include "queue"using namespace std;const int MAX = 22;const int dx[] = ...
分类:
其他好文 时间:
2014-12-07 20:18:22
阅读次数:
180
敲七
【问题描述】
输出7和7的倍数,还有包含7的数字例如(17,27,37...70,71,72,73...)
【要求】
【数据输入】一个整数N。(N不大于30000)
【数据输出】从小到大排列的不大于N的与7有关的数字,每行一个。
【样例输入】
20
【样例输出】
7
14
17
代码:
#include
using namespace std;
int main()
{
...
分类:
其他好文 时间:
2014-12-06 14:10:00
阅读次数:
404
统计同成绩学生人数:
【问题描述】
读入N名学生的成绩,将获得某一给定分数的学生人数输出。
【要求】
【数据输入】测试输入包含若干测试用例,每个测试用例的格式为
第1行:N
第2行:N名学生的成绩,相邻两数字用一个空格间隔。
第3行:给定分数
当读到N=0时输入结束。其中N不超过1000,成绩分数为(包含)0到100之间的一个整数。
【数据输出】对每个测试用例,将获得给定分数的学生人数输出...
分类:
其他好文 时间:
2014-12-06 12:51:55
阅读次数:
169