Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-16 23:07:09
阅读次数:
196
To add up all the numbers in a list, you can use a loop like this: Total is initialized to 0. Each time through the loop, x gets one element...
分类:
其他好文 时间:
2014-07-16 19:29:14
阅读次数:
234
a题#include#includechar c[101][101];int main(){ long n,m,i,j; scanf("%ld%ld",&n,&m); gets(c[0]); for(i=1;i#include #include #include using ...
分类:
其他好文 时间:
2014-07-13 09:05:03
阅读次数:
195
#include
#include
void main()
{
char s1[1000],s2[100],b[100];
int i,j,k,len1,len2;
gets(s1);
gets(s2);
len1=strlen(s1);
len2=strlen(s2);
for(i=0,k=0;i
{
for(j=0;j
if(s1[i+j]!=s2[j])break;...
分类:
其他好文 时间:
2014-07-12 23:41:03
阅读次数:
195
C 一个字符串有三段,第一段原样输出,第二段为要输出字符串的长度,第三段为根据第二段长度补齐第一段
例如:输入abc 11 12,输出abc12121212
#include
#include
int main(){
char a[100],b[100];
int len=0,i,j;
int flag,t;
gets(a);
for(i=0;a[i]!=' ';i++)...
分类:
其他好文 时间:
2014-07-12 18:22:12
阅读次数:
218
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:24:00
阅读次数:
258
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:23:16
阅读次数:
231
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:22:39
阅读次数:
181
Who Gets the Most Candies?
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 9416
Accepted: 2868
Case Time Limit: 2000MS
Description
N children are s...
分类:
其他好文 时间:
2014-07-09 12:46:35
阅读次数:
234
Method 4: Gets the value of element number i
For example, if list is {22, 33, 44, 55, 66, 77, 88, 99}, then get(list, 2) will return 44.
Solution 1:
static int get(Node list, int i) {
if (i < 0) ...
分类:
其他好文 时间:
2014-07-08 14:07:52
阅读次数:
262