题目:用户给定一个维度,打印出指定的一个矩阵,例如用户给定10,输出应该如下图所示:
程序如下:
#include
#include
int main()
{
int dimension;
int *p;
int startx, starty, endx, endy;
int i, j, value = 0;
printf("Please input dimension...
分类:
其他好文 时间:
2014-07-24 23:40:23
阅读次数:
287
题目比较简单。注意看测试用例2,给的提示Please note that this is the largest possible return value: whenever there is a solution, there is a solution that uses at most tw...
分类:
其他好文 时间:
2014-07-23 14:46:06
阅读次数:
283
** Building terminfo database, please wait...
Running tic to install /usr/share/terminfo ...
You may see messages regarding extended capabilities, e.g., AX.
These are extended t...
分类:
其他好文 时间:
2014-07-23 13:40:16
阅读次数:
468
#include #include void main(){ int x,i; char str[100]; //gets(st1); printf("Please input a string to find out whether the string is palind...
分类:
其他好文 时间:
2014-07-22 23:04:32
阅读次数:
240
Jzzhu has invented a kind of sequences, they meet the following property:
You are given x and y,
please calculate fn modulo 1000000007 (109?+?7).
Input
The first line contains two int...
分类:
其他好文 时间:
2014-07-22 22:49:33
阅读次数:
296
1. 写一个脚本,利用循环计算10的阶乘#!/bin/shfactorial=1for a in `seq 1 10`do factorial=`expr $factorial \* $a`doneecho "10! = $factorial"2. 写一个脚本,执行后,打印一行提示“Please i...
分类:
系统相关 时间:
2014-07-22 00:06:35
阅读次数:
502
Hadoop 1.x版本不支持FileSystem的append操作,而需要升级到Hadoop 2.x,否则会报异常:org.apache.hadoop.ipc.RemoteException: java.io.IOException: Append is not supported. Please...
分类:
移动开发 时间:
2014-07-21 09:13:27
阅读次数:
1094
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-07-21 08:36:32
阅读次数:
208
Jzzhu has invented a kind of sequences, they meet the following property:
You are given x and
y, please calculate fn modulo
1000000007 (109?+?7).
Input
The first line contains two integers...
分类:
其他好文 时间:
2014-07-20 10:43:17
阅读次数:
213
如何在phpeclipse中像调试Java程序一样调试php呢?
XDebug的版本很多,打开http://xdebug.org/index.php,把网站仔细看一下,你会发现有句“If you don't know which one you need, please refer to the custom installation instructions.”,非常好,打开这个页面,按照要求...
分类:
Web程序 时间:
2014-07-19 23:17:35
阅读次数:
270