Toggle navigation
Courses
Questions
Tags
Users
AD 20161013 作業 4
0
like
0
dislike
2.2k
views
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=429
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13528 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.2k
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
23
Answers
0
like
0
dislike
Hidden content!
#include * ** * * **
#include ** **** * *
int main()
{
*** * ** ** * * **** * ** a , b;
** * ** * * ** * * ** i , j , k ;
** *** * * *** *** ** **
**** ** ******** * * ** ** *** ** &a , ** *
* * *** *** * * * * *
* ***
*** * **** * *** ** ** * * **
** * * ** * * ***
**** **
**** ** *** * ** * * *
******** ** * * * * * ** **** ***
** * ******** ***** * * ** *
** * * * *** *** * * ** * *** ******* ** ** ***** ** , i); * * * *** * ******* * * **** *** ** * * * * ** * ** * ** ** ***
** * * ** * ** * * * **** * * *** ** **** * * ****** * *** *** ** * * ** * ** ****** ** *
* ** ** * * * ** ****** ***
* ** ** * ** * ** * ** **** **** * ** *** *
* ** * * *** *** * **** * ***** ** *** * ** * * * *** * **
* * * ** * * * * ** * * *** ** ** ** * ** * ** ****** **** **** * * *
* ******* * ** ******** *
****** * ** * ** * * *
* * ****** ******* * ** ***** * *
* * ** ** * ** *** ** *
** ** * ** * * * * * *** ** ** * ***
{
*** * * **** ***** **** * * ** ***** , i);
* * }
**** *** * * * * ** ** *
* **** * * ***** ******* *
}
* * * * ** * * * **
}
***** ** **** * * * *
* * * * * * * * 0 ;
}
answered
Oct 13, 2016
by
410223045
(
-194
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i=0,j=0,k=0,a=0,b=0,c=0,d=0,e=0,f=0;
scanf("%d",&i);
for(a=1;a<=i;a++)
{
** * * * ******* ** * * * ****** * ** *** ****** ** * * **** ** *
** ** **** * * * * *** *** ** ** ** * * ****** ** * ** ***
* ** * * * * ** ** ** ** **** * * * ***** ** * **
{
** * * * * * * * * * * *** ** * ** * * * * * *** *** * * * ** * ** * *
*** ** *** * * * ** **** **** * * * * * * * ** ** **** **** ******
**** * * * * *** * * ** ***** * ***** ** * **** *** ** ** **** ** ****** *** ** ** * * ***
**** * * * * * *** ****** *** ** * * ***** * ** ** ** * * ** ****** ** ** * ** * * * * *
* ** ***** * * * *** * *** ** * ** ** ***** **** * ** * * * * * * * ** * * ** ** *** ** * * ****** * ** * * *** *
** * * **** * * * ** * ** *** * * * * * ** * *** * * * * * ** **** ** *
*** * * * * * * **** * ******* * ** * ** ** * * ****** ******* * *** * ** *** * ** * ** *** * * * * *** *** *** * *
** *** * ****** * ** ** * * * ** * * * * * * * ** * * * ***** * **
** * * ***** * * * ** *** * * *** * * * *** * ** * * *** * **
****** *** * * *** * ** *** ** ***** * ** ** * ** * ** * ***** **
*** * * * ** ** * * ** * ** * * *** ** * **** ** * *** * * * * ***** * ** * **** ** ** * ** * ***
** * * * * ** **** * * *** *** * * * *** * * ** ** * * *** ** * ***** ** * *** *
** ** * ** * *** *** * * * * ** * * * ***** * ** ** ** *** ** * * * ** * * ** * * **** *** * * ** *
**** * *** * *** *** ** * ** * * ** * * **** *** **** ** * ****** *** * *** ***
** * ** ***** ** *** ***** *** * * * ** * ** ** *** * * * * *** * * * ***** * * * * ** **** * * * ***
** * * ** ** ** * * **** ** ** * * ** **** ** * ** *
* ** * * ** *** * * *** * ** * ** * * ** * * * *** **** * ** **** *********
** ** * * ** * * * **** * **** * *
}
system("pause");
return 0;
}
answered
Oct 13, 2016
by
410523043
(
156
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
**** * * *** ** ** * * a , b;
** ***** *** *** * * * i , j , k ;
* ** * * *** * *** ** * * ** * &a);
* ** *** * * **** * ** * * &b);
** ***** * * ** * * * **
* * * ** *** * ** * ******
* * ** * * *** ** *** ** *** * * *
* * * ** ** * *
** * *** *** * ***** ****** *********** * **
** * ** *** ** * ****** * * * **
***** * ** ****** ***** ** * ** * * * * * ** * * * *** *** * , i); * * * ** **** **** * *** ** ** * ** **** ** * * ** * * * **
*** * * ** * * ** * * * *** * ** ** * * * * *** * * * **** *** ***** * ** ** * *
** ** * * * * **** *******
* * * *** **** **** ****** ***** ** ***
***** * * * *** * *** **** * * *** * ****** ** * * ** *
* * * * ** *** * ** ** ** * ** ** * * * ** * * * * ** ***
* ******** ****** * **
* **** *** *** * *** ** *** ** *
*** * ***** * * * **
** * * ** *** ***** * ** ******* * * * * * **** * *
* *** ** ******* ** * * * *** * *** ** **
*** *** ** **** * * * ** * ** ** * * ** *** *** * * * ** , i);
*** * ******* ** * * * *** * ** *** **** *** ***
**** * ***** * * ** ** * * *** ** **** * * * * * * **** **
* *** * * *** * ** ** **
* * * ******* * * **
** * ** * * **** * * ******** * ** *****
* *** * * **** * * * 0 ;
}
answered
Oct 13, 2016
by
410223045
(
-194
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * ** *** *
#include **** * * *
int main()
{
******** **** * * ** ** ** * a , b;
* * ***** * * *** i , j , k ;
**** *** * **** * * *
* * * *** ** *** ** * * * * * &a , ** ** *
*** * * *** ** **** ***** * * * * *
* ** **** *** **
** ** ***
* * * ** * ** * *** *
* * ** * * ** ********* * * *** ** ***** ** *
* * * ** ** *** * ****** * * **
*** ** * * ******** * ***** * * ** * * ** * ****** * ** * , i); * **** * *** * * * * ** * **** ** * *** * * ** **** **** * ** ** ** * **
* * *** ** * * * ** ******* ** ** *** ** ** **** * *** * * * * * * * * *****
* ** ***** * **** * *
* * * ** * * * ** ** ** * * ** * ** * **
*** *** *** * * ** * * **** * * ****** ** * ** ** *
**** *** *** ** * ** ** * ** * ** * * ** ** * ****** * * ** * *** * * *
*** ** ** ** ***** ** ** **
**** *** ** * * *** * * *
* * * ** * ** ** * * * *** * *** ** * **
* * **** **** *
*** *** * * ***** *** * *** ***** ** * *** *
* * * {
* * * * *** * * ***** *** ** * ****** * ****** , i);
** ** }
* * ** * *
* * *** * * **
}
* ** **** *
** * *
}
* * * * **** *** ****
**** * * ** 0 ;
}
answered
Oct 13, 2016
by
410223055
(
-186
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
* ** *** * *** * *** ** a , b;
** ** * * * ******** * * i , j , k ;
*** *** * * * ** ** *** *** * * ** * * * &a);
* * ** * * * * * **** * ** &b);
** * ****** ** * *** * *** * ***
** ** * ***** ** ** **
** ******* * **** * **** ****** ** * *
** ** *** ** * ** ** ** ***
**** ** * * **** **** ** * * * ** * ** * * *** **
* ** ** *** ***** ** * ** * ***
** * * * ******* * * *** * * *** * * * * * * * ** , i); ** ** * *** **** **** ** ** * * * *** * * ******* * ** * * ** * * **
* * * * *** * * ** ** * * *** * * * ** * * * * * ** * *** * ***** *
** ** ** **** * * ** * *** * * * *
***** * ** ** *** * ** *** **** * * * *
*** *** **** * * **** **** * * * * * *** * ** ** *
* ** ** * ********* **** ***** * ******* * * * ***** *** **** * ** * ******
**** ** ** * * ** ** * ***
** * ***** ***** ** *** ****** **
* * * * ****** ** * *
**** * * * * *** ** *** * **** ** ** ** ** ** * ** *** *
* **** ** * ** ** * * ** *** * * * **** *
* * * * * * ** * ** ** ** * **** * * ** ** **** ***** ** *** , i);
** *** **** *** *** * * *** ******** * * ******* *** **
* * *** * * * * * ** ** **** * ** ** *** ***** **
}
** * ** * * * ***** * * **** **** * ** * *
** * * *** * *** * **
* * ** * ** * ** **** **** *** ** * ** *
** ** **** ** * * ** * ** 0 ;
}
answered
Oct 13, 2016
by
410223045
(
-194
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include **** *** ** *
#include * ****** * *
int main()
{
* ****** * ** *** * ** * a , b;
* * ***** ** * ** i , j , k ;
* ****** * ** **** **
* * ** * **** *** **** *** * * ** **** **
* *** ** *** * ** *** * * * * * * * * ***
* *** ** * ** * *** * ******** * **
* * * ** * ** ****
** * ** ***
* ** ** ** * * **** **
** * *** ** *** * ******* *** * * * * * * **
* **** * * * ** ** * * **** *
** * * * *** * ** * ** ****** * * ** * ** **** ** * * * * * , i); *** * * **** *** * * *** ** * ** * * * * ** ** **** ** ** * * * * * *
** ** *** **** * * **** **** ** * * ***** ***** *** * * ** *** ** * *** * * **** * ** * **
** * **** ** * * * * ** *
* *** * * * **** * ** * * * ** * * **
** **** * * ** * * * *** * * * * * *** * **
*** ***** * * ** *** *** *** * * * * ** * *** * * ***** * * **** * * ** *
** * * * * ** * ***** *
*** ** *** * ***
*** * * * **** ***** *** ****** *** * *
*** **** ** * * * ** ****
** ** * ******** *** ** *** * * * *
** {
** * ******* * * ** ** *** ** *** * * * , i);
}
** * ** * ** * * ** *
*** **** * * ** *
}
* ***** ** ** * ** *
}
* * * * * *
***** ***** ** * *** * ** 0 ;
}
answered
Oct 13, 2016
by
410223055
(
-186
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
* ** * * * * * *** * a ;
**** ** *** **** * i , j ;
************ *** ** *** * * *** * *** * * ** * &a);
**** *** ******** * * ** *** * *
** ** **** **
** * ** * * *** ** * ** * ** *** * ** ***
* *** * **** * * * * * * *** * **
** * * *** ** * ** ** * ** * ** *** *** * **** **** *** * ** * , i); ** * *** ** * ** * * ***** ******** **** ** *** ** * * * ** ******
* ** * **** **** * * * ** *** * *** * ** * * * *** ** ** * **** ****** * * * * * **
* * * ** * ** * * * ***
* * * ** ** * ******* *** * * ** *** * ****
**** * *** * ** ** * ** * ** * ***** * *** *** * ** * *
* ** ** ** ** ** * **** ** * **** ** ******** * *** **** * * *** * ****** *
* *** * ** * **** * * * *
* * * ** * * * * ** *** * * *
{
******* *** * * ** *** * ***** * * * ***** *** **** * * **
** * * *** * * * * * ** * *
* ** * ** **** * *** ***** ** **** *** * **** ** * *** *** ** * , i);
**** ** * ** ** ** ** * ** ** **** * * ***
* * *** * * * ** *** *** ** ** * ** ** ** * *** ** **** *
}
* *** * ** * * * *** * *** ***
** ** * ** ** * * *** * 0 ;
}
answered
Oct 13, 2016
by
410223055
(
-186
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b,c,i,j,k;
** *** *** * * ***** * ***** *** * ** * **
* **** * ** * *** * ** ***
* * * * ***** * * * * * ***** **** * * ** *** ** * * * ** * * ** ** ** ** * * *
***** * ** *** ** ** ** * *** * ** = 1;i <= c;i++)
* **** * * * * ** * ** **** = 1;j <= b;j++)
** ***** * * ** *** ** * * ** ** * **** *** ** * = 1;k <= j;k++)
* * * ** *** * * ***** * *** **** * * **** * * **
* * * * ** * * * * ** * ** ******* ** * * **
**** ***** ** ** *********
* * * * ** * **** * * * * * ** **** = b-1;j >= 1;j--)
**** *** * * * * * ******* * ** * ** ** = 1;k <= j;k++)
** * **** * * * * *** * ** *** **** ** ** * * * ** * * * *** *
** * ** ** ** ***** ** ** * * * **** * ** * * * * *
* * ** **** * ** ** * *** *** ** ***
*** * * ** * ** * * * * * *** ** != c)
*** * * * *** ** * **** *** ** * * ** **
** * ****** ** * ** * *** ** *** * ** ** ** * ** * * **** * * * **** ** ** *** *** *** * * * **** ** *** * * ** * * ** * **
}
* * ** ** *** ** **** * *** ** ** * *** * * *
* * ** * * * *** * * * 0;
}
answered
Oct 13, 2016
by
謝秉弘
(
-264
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
int num , fre , amp , i , j , k ;
* ** **** * ** ** ** * *** ** * * * * ** ***
for( ; num > 0 ; num--)
{
* * * ****** * **** * * * * ** * *** *** **** ** ** * *** **** ** * *
* *** ****** **** * ** * ** * * * ** *** * * * *** * ** ***** * ****** * ** ** *
*** * **** **** * * ** * *** * * * * *** * ****** **
* ** ** ***** *** ** * * * * ** *** * ** *** k = fre ; k > 0 ; k--)
** ** * * * ***** ** ** * * * * ** *** * **
*** * ** *** **** ** ** * * *** * * * * ** * * ***** * ** * *** * * * * * i = 1 ; i <= amp ; i++)
* * * *** **** * * * ** * *** ** ** * * ** * * *** * ***
** * * ** * **** **** * * ** ** *** *** * *** ** * ** ***** ** * ** * **** ***** * * j = i ; j > 0 ; j--)
****** ********* ******** ** ** ** * * * * ** ** * *** ** ** * ************ * * * * * ** * * * * * * ** * ** * * * * * * ** ** *
* ** ** *** * ******* * *** **** *** * * ** ** **** * * ** * ** ** ** * **** * * *** * * ***** * ** ** *
* * * **** * *** ** * * ** ** * *** *** ** ** ** * * * * * **
* * * * * ** ****** * * * * *** * *** ***
* ** * * **** ** * * * * * ** ** * * * ** *** **** * *** *** **** i = amp - 1 ; i > 0 ; i--)
** * * * * *** *** * * * ** * **** * ** *** ** * * ** *
**** ** * * ** * ** ** ** ** * * ** * ** ***** * ** * ***** * **** ****** * ** * * * * * *** ** * *** j = i ; j > 0 ; j--)
* * ** * * ** * * ** * ** *** *** * ** ***** *** * * ** ** * ** ** ***** * * *** ** **** * **** ** **** * * * * * **** *** * * *
* * * * ** * * *** ***** ** * * ** ** * * * **** * ** * * * * * *** * * ** * * * ** ** * * ** *
* * ** * * * * * **** ** *** * * * * ** ** *** * * * ** * * * *** **
* ***** * * **** *** * ** * * * ** *** * **** ** *** * *** ** **** *** **
** *** ** ** ** * * ** * ** * * * * ** * * * *
}
system("pause");
return 0;
}
answered
Oct 13, 2016
by
Phoenix666
(
-162
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * * * *
#include ** ** ****
int main(int argc, char *argv[]){
int a,b,c,i,j,k;
* * * ** * ** * * *
while(a--){
** ** * *** * ***** * * * ** ** * * ,&c);
* ** * * ** = 1; i <= c ; i++){
* * ***** * ** * * ** = 1; j <= b;j++){
** ** * ** *** * * ** * * ** ** * ** *** = 1; k <= j ; k++)
* * ** **** ** ***** * * * * * *** * * ******* * * *** * ** * * * * **** ****
* ** * ****** * * **** ** * * * * * ** * **** ***** *
** * * * * * * ** * * **
******* ** * * * * * ** = b-1; j >= 1;j--){
** *** * * * ** ** * ** *** * * * * * * = 1; k <= j ; k++)
* * *** *** ** *** * ** * * * * * *** * **** * ** * * **** * * *
*** * * ***** ** * * * ** * * * * ** * ** ** **** * *** ** **
** * ** * ** ** * * * * ** * *
** * * ** ************ ****** * != c)
**** ** * ** ** *** * * *** *** ** ***** ** * * ** *** ** *
** *** * *
}
**** * * *** * ** 0;
}
answered
Oct 13, 2016
by
Dhgir.Abien
(
-216
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.69.58.88
©2016-2025
Related questions
0
like
0
dislike
45
answers
AD 20161013 作業 3
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13501 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3.6k
views
0
like
0
dislike
67
answers
AD 20161013 作業 1
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13427 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.6k
views
0
like
0
dislike
54
answers
AD 20161020 作業 4
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14583 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4k
views
0
like
0
dislike
60
answers
AD 20161013 作業 2
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 13428 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.2k
views
0
like
0
dislike
31
answers
AD 20161103 作業2
[Exercise]
Essay (Open question)
-
asked
Nov 3, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16958 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.6k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users