火柴棍Time Limit:1000MSMemory
Limit:65535KBSubmissions:82Accepted:21Description火柴棍可以拼成10进制的数字,如图所示:现在,gogo给你个n个火柴棍,要求你输出最小能拼成的数字和最大能拼成的数字。Input第一行输入一个整数T...
分类:
其他好文 时间:
2014-05-05 21:32:02
阅读次数:
365
1,C++中操作数组
#include
using namespace std;
int length(char []);
void output_frequency(char []);
int main()
{
char str[]="yan cong min";
cout<<"要处理的字符串为:"<<str<<endl;
cout<<"字符串长度为:"<<lengt...
分类:
编程语言 时间:
2014-05-05 13:29:30
阅读次数:
432
这篇对应的是习题16,读写文件
# -*- coding: utf-8 -*-
#对文件更多操作复制A文件的内容到B文件
#from sys import argv
from os.path import exists
prompt = "> "
from_file = raw_input("please input the filename where you want to copy...
分类:
编程语言 时间:
2014-05-05 12:54:02
阅读次数:
402
问题:把英文单词表示的数字转换为阿拉伯数字,要求数字不超过整形范围,数字形如abc,def,hrg。第一行表示有几组数据,第二行输入英文。输出:相应的阿拉伯数字。例如:input:
3 eleven one hundred and two output: 11102分析:要注意百万和千要断位,还有要...
分类:
其他好文 时间:
2014-05-04 12:32:10
阅读次数:
326
windows
-->java-->compiler-->building中的ouput folder 中的第一个scrub output folders
when cleaning projets.前面那个勾去掉。
分类:
系统相关 时间:
2014-05-04 12:12:34
阅读次数:
621
Problem
Description在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。Input每行只有一个正整数N,N小于32768。Output对应每个输入,输出兑换方法数。Sample
Input293412553Sample Output71...
分类:
其他好文 时间:
2014-05-04 11:51:37
阅读次数:
248
(1) A.
input和lable自然对齐,label高度显然没有包裹img,如果给img设置vertical-align:middle。则label就会在img垂直中心,input和lable本来就会对齐,那么input也就和img垂直对齐了。B.但如下结构就不行了
...
分类:
其他好文 时间:
2014-05-03 22:32:34
阅读次数:
351
分解整数
Description
作为Acmer的你现在接到任务,需要将整数n写成n=x1+x2+…..xk这种形式,其中xi(i>=1&&i
5=1+1+1+1+1,5=1+1+3,5=1+3+1,5=3+1+1,5=5这5中形式,求出n有多少种分解方法
Input
有多组输入,输入以文件结尾,每组输入一个整数n
Output
输出分解方案的种数
Sample...
分类:
其他好文 时间:
2014-05-03 21:24:07
阅读次数:
404
【题目】
B
Age Sort
Input: Standard Input
Output: Standard Output
You are given the ages (in years) of all people of a country with at least 1 year of age. You kn...
分类:
其他好文 时间:
2014-05-03 16:51:42
阅读次数:
427
本题就是测试读入数据的速度的。
如果有大量的数据读入,使用cin是很慢的。
那么使用scanf那么会快很多,但是如果数据量更大的话那么就还是不够快了。
所以这里使用fread。
首先开一个buffer,然后使用fread大块大块地读入数据就可以非常快地读入了。
题目如下:
Input
The input begins with two positive...
分类:
其他好文 时间:
2014-05-03 16:13:21
阅读次数:
340