码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
nyoj 找球号三(除了一个数个数为基数,其他为偶数,编程之美上的)
#include#includeusing namespace std;int main(){ int len; while(cin>>len) { int ans; len--; cin>>ans; while(len--) { int a; cin>>a; ...
分类:其他好文   时间:2014-06-02 19:59:57    阅读次数:190
java-第五章-do{}while()升级菜单切换
importjava.util.Scanner; publicclassA04{ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub Scannerinput=newScanner(System.in); System.out.println("欢迎使用MyShopPing管理系统"); System.out.println("\n********************************..
分类:编程语言   时间:2014-06-02 14:44:48    阅读次数:378
POJ1328——Radar Installation
Radar InstallationDescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is...
分类:其他好文   时间:2014-06-02 14:04:03    阅读次数:265
《shell脚本if..then..elif..then.if语句的总结》
第一种:#!/bin/bash service vsftpd start &> /dev/null if[ $? -eq 0 ]thenecho "ftp is start"elseservice vsftpd startfi第二种:#!/bin/bash read -p "input your f...
分类:其他好文   时间:2014-06-02 00:41:38    阅读次数:332
【leetcode】N-queens II
问题: 返回N皇后问题解的个数。 分析: 详见 N-queens 实现: bool nextPermutation(vector &num) { int i = num.size() - 1; while (i >= 1) { if(num[i] > num[i - 1]) { --i; int ii = num.size() - 1; while (i...
分类:其他好文   时间:2014-06-01 18:24:45    阅读次数:398
java-第五章-while升级购物结算升级版
importjava.util.Scanner; publicclassA03{ /** *@paramargs */ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub Scannerinput=newScanner(System.in); System.out.println("****************************************"); System.out.print..
分类:编程语言   时间:2014-06-01 16:42:08    阅读次数:335
java-第五章-计算100以内(包括100)的偶数之和
publicclassA01{ /** *@paramargs */ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub intsum=0; intnum=2; while(num<=100){ sum+=num; num+=2; } System.out.println(sum); } }
分类:编程语言   时间:2014-06-01 16:35:36    阅读次数:552
【驱动】Linux初级驱动系列框架
【系统环境搭建】1.uboot的命令set serverip 192.168.7.xxset ipaddr 192.168.7.xxxset bootcmd tftp 20800000 zImage\;bootm 20800000 //开发模式set bootcmd nand read 208...
分类:系统相关   时间:2014-06-01 12:05:16    阅读次数:394
16 [个人补充知识点]在Spring中定义了5中不同的事务隔离级别
在Spring中定义了5中不同的事务隔离级别:1. ISOLATION_DEFAULT(一般情况下使用这种配置既可);这是一个PlatfromTransactionManager默认的隔离级别,使用数据库默认的事务隔离级别。2. ISOLATION_READ_UNCOMMITTED4 p" L. I...
分类:编程语言   时间:2014-06-01 11:23:03    阅读次数:199
projecteuler---->problem=11----Largest product in a grid
In the 2020 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 ...
分类:其他好文   时间:2014-06-01 10:04:38    阅读次数:419
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!