Description
A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the ...
分类:
Web程序 时间:
2014-08-12 19:01:14
阅读次数:
471
输入一个n,求在多少个x进制下只含有3、4、5、6...
分类:
其他好文 时间:
2014-08-12 19:00:34
阅读次数:
176
题目链接:hdu 4937 Lucky Number
题目大意:给定一个数n,若这个数在base进制下全由3,4,5,6组成的话,则称base为n的幸运进制,给定n,求有多少个幸运进制。无穷多个的话输出-1,单个位置上超过9用相应的字符表示。
解题思路:首先n%base=3|4|5|6,假设我们当前考虑3,即n%base=3,那么就有:
n=base?k+3n?3=base?k
...
分类:
其他好文 时间:
2014-08-12 19:00:24
阅读次数:
259
A simple problemAccepted : 61Submit : 418Time Limit : 15000 MSMemory Limit : 655360 KBProblem DescriptionThere is a simple problem. Given a number N. ...
分类:
其他好文 时间:
2014-08-12 18:42:54
阅读次数:
230
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:
其他好文 时间:
2014-08-12 18:26:14
阅读次数:
280
1666: [Usaco2006 Oct]Another Cow Number Game 奶牛的数字游戏Time Limit:5 SecMemory Limit:64 MBSubmit:502Solved:432[Submit][Status]Description奶牛们又在玩一种无聊的数字游戏。输...
分类:
其他好文 时间:
2014-08-12 18:10:04
阅读次数:
212
1 /* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you ...
分类:
其他好文 时间:
2014-08-12 16:43:54
阅读次数:
319
Check your gcc version. If it is less than 4.7, you need use another printer.py file. Get the file fromhttp://gcc.gnu.org/svn/gcc/branches/gcc-4_6-bra...
分类:
数据库 时间:
2014-08-12 16:43:44
阅读次数:
226
指令名称 : chmod 使用权限 : 所有使用者 使用方式 : chmod [-cfvR] [--help] [--version] mode file... 说明 : Linux/Unix 的档案调用权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所调用。 ...
分类:
其他好文 时间:
2014-08-12 16:36:14
阅读次数:
174
名称:cat 使用权限:所有使用者 使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName 说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案) 参数: -n 或 --number 由 1 开始对所有输出的行数编号 -.....
分类:
其他好文 时间:
2014-08-12 16:35:54
阅读次数:
197