码迷,mamicode.com
首页 >  
搜索关键字:input    ( 33491个结果
线段树专题
HDU 1754 Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。   Input 本题目包含多组测试,请处理到文件结束。 在每个测...
分类:其他好文   时间:2014-05-10 09:55:59    阅读次数:300
斜率优化专题4——bzoj 1911: [Apio2010] 特别行动队 题解
【原题】 1911: [Apio2010]特别行动队 Time Limit: 4 Sec  Memory Limit: 64 MB Submit: 2134  Solved: 911 [Submit][Status] Description Input Output Sample Input 4 -1 10 -20 2 2 3 4 ...
分类:Windows程序   时间:2014-05-07 08:55:55    阅读次数:460
斜率优化专题3——bzoj 3156 防御准备 题解
【原题】 3156: 防御准备 Time Limit: 10 Sec  Memory Limit: 512 MB Submit: 198  Solved: 107 [Submit][Status] Description Input 第一行为一个整数N表示战线的总长度。 第二行N个整数,第i个整数表示在位置i放置守卫塔的花费Ai。 Output ...
分类:其他好文   时间:2014-05-07 08:22:07    阅读次数:318
2014第六届华为编程大赛初赛第四轮
/*********************************************************************** 第一题 求n个整数的最大公约数 输入 第一行: n个整数 第二行:各个整数 以空格隔开 输出;公约数 例子: input: 4 10 15 20 25 output: 5 *********************************...
分类:其他好文   时间:2014-05-07 08:17:28    阅读次数:336
【Leetcode】String to Integer (atoi)
【Question】 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the p...
分类:其他好文   时间:2014-05-07 04:17:18    阅读次数:259
第一个racket程序:获得字符串中的数字
#! /usr/bin/env racket #lang racket #| NAME: getModelNumber.rkt This program is used to get model number based on the input model file name. USAGE: ./getModelNumber.rkt modelfi...
分类:其他好文   时间:2014-05-07 03:17:09    阅读次数:323
PHP filter_input() 函数
以往,对于常见的SQL注入等漏洞,采取的方式一般都是对数据进行过滤,而对$_GET/$_POST/$_COOKIE/$_SERVER等全局数组变量的直接使用是不够安全的,故PHP 5.2.0版本以后,推出Filter系列函数,对外部脚本的数据进行过滤,比如POST表单中的email邮箱进行验证,则将...
分类:Web程序   时间:2014-05-07 02:07:31    阅读次数:450
用C实现一个简单的对拍器
大一新生,首次创作,虚心受教。实现思路:一、需要一个输入文件(input.txt),两个对拍程序(main1.txt,main2.txt)二、将标准输入重定向为input.txt。将标准输出分别重定向为output1.txt,output2.txt。三、对两个输出文件进行比较,输出结果。具体实现:一...
分类:其他好文   时间:2014-05-07 00:04:33    阅读次数:461
Python重写C语言程序100例--Part2
'''题目:输入某年某月某日,判断这一天是这一年的第几天? 1.程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊       情况,闰年且输入月份大于3时需考虑多加一天。 2.程序源代码: ''' year = int(raw_input('year:\n')) month = int(raw_input('month:\n')) day = int(raw_...
分类:编程语言   时间:2014-05-06 21:27:14    阅读次数:465
A Simple Problem
For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.   Input The first line is an integer T, which is the the...
分类:其他好文   时间:2014-05-06 19:21:10    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!