Toggle navigation
Courses
Questions
Tags
Users
AC 20161013 作業 4
0
like
0
dislike
4.4k
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: 13763 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.4k
views
comment
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
Please
log in
or
register
to add a comment.
64
Answers
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 27, 2016
by
m8f2617
(
-103
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 time=0,p1;
* ***** *** ** * * ** *** *** ** ** * *** ***
for(p1=0;p1<time;p1++)
{
int t,up,p2;
printf("\n");
if(p1 != 0)
*** *** * * **** **** * ** * ** *** * ** * * * ** *** *
** *** * ** * *** **** ** * ** ** * ** ** * ** *** * * *
** * * ******* *** * * * * * * * * ** *****
** ****** ***** *** ***** ** * ** *** *** ****** time it run
* *** ** * *** **** * * * * * ** * * ***** *** ** ** * ***** * up<=9 )
* *** ** ** * * * * ** ** * * * ** * * * ****
** * ** *** * *** * ** ** * * ******** * ***** *
{
** * * ** * * * * ** *** **** **** * * * * p3,p4;
** ** * * ** *** * * ****** ****** *** * ** ** **
** **** ** * * ** * ** * ***** * ** * * ** ***** ******** * ** * * ** **** * ***
* * ** ******* * **** ** * * * * **** * *** ***** ** (p3=1;p3<=up;p3++)
* * * ****** * ** * *** ** ******** * * * ** * ** *** **
*** *** ** ********* ****** ** * *** * **** ** * * * *** *** * * **** **
* * ** **** ****** * * *** ** * ** **** * ** **** * * *******
* * *** * *** * ** ** ** * *** * * * * ** ** *** *** * * *** ** * * ******
*** ** *** *** ** ** ** ** ** * * * * ** ** *** *** * ** ** ** ** * *****
* ***** * * **** * *** ****** ***** ** ** *** ** *** ** ***** * * ** ** * * ** * * **
** ** *** * * ** * **** ***** * * * * *** ***** ** ** **** *
** * **** ** *** * * * * ****** * ***** *** * * ** * ** * **** * *** **
** ** * * ** *** * ** * * * ** * *** ** ** (p3=up-1;p3>0;p3--)
** * *** * * *** * ** * * *** ** * ** ** **** **
* **** * **** * *** ** * *** ***** *** *** * * ***** * ** * * * * * ** ** *** * **
* * *** * ** *** * ** ** * **** * ** * ** * * * *** ** * ** *** ** ** * * * * * *
** * ******** ** * * ****** * * * * * *** * * ** * * * *
******* ** ***** * * *** * * * * * * * *** ** * ** * ** * *** * * * * ** * * * ** * *** * *
* *** * ** * ****** * *** * *** ** * *** * ** * * * * * ** *** * * *
* * ** ** ** * **** * * * **** * * ** * ** *
* * ** ** *** * * * *** * * ** *** * ** ** * **
}
}
return 0;
}
answered
Oct 26, 2016
by
李奕叡
(
-143
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, j, n, f, k;
* * * * **** ** ** ** ** * ***** * * ** &n,&f);
*** * *** * * * * ** * > 9)
** **** **** * ** ** * ** * * * * *** **** 0;
* **** * * * ** ** ***
*** *** ** * * ** * **** **** * * = 0; k < f; k++){
*** ** * * *** * * * **** * **** ****** * * ** ** * ** = 1; i <= n; i++){
** * * ** ** ** * * ******** * * ** * * ** * * * = 0; j < i; j++){
** * * ** *** *** * ***** **** **** ***** * **** * ** ****** * * ** * ** ******** ** **** * ** * **** * i);
**** * ** * * ** * ** * * * ** ** ** ** * *** *** ******* ** * ** * *
* ** * * * * * * ****** * * *** *** * * * **** * *** * ** ** ***** * * ** ** *
** * ** * * ** ** **** ** * * ** * * *
** ** **** ** **** ** * * * **** * *** * *** = n - 1; i >= 0; i--){
* * ** *** **** * * * * *** * *** ** *** * * * * ** ** * = i; j > 0; j--){
**** ****** ** *** ** ** * * *** *** ** ****** * * **** * ** * ** ** * * * * * * * * * * ** i);
**** * ** * * * *** **** * * * ** ** * * * * *** * *** * * **
** ****** *** * ** ** ** * **** *** * **** * * ** * ********* *** * *
** * * * * *** **** * * * * * ** ***
}
}
* * * * * ** * * 0;
}
answered
Oct 26, 2016
by
410342026
(
-105
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, j, n, f, k;
* * * ** *** * *** *** ** * ** &n,&f);
if(n > 9)
* * * *** *** * ** * ** *** * ** * * 0;
* * ** * * ** ** ** * = 0; k < f; k++){
* *** * * * * *** * * *** ** * * = 1; i <= n; i++){
* * ** * ** * * ** ******** * * * * ** * * * * ** *** * ** *** * ** = 0; j < i; j++){
* * *** * * * ** * *** *** * **** **** ** * ****** ** * *** *** * * * **** ** **** * ** ** * *** * * * * ** * * i);
* ** *** *** * *** *** ** * * * *** *** * *** * * ** ***** * * * * * *
* * * * ** * ** * * ** * *** * * * *** ** * * * * **** ** * ** *** ** * **
* * * * * ** * ** ** * ** * * ** * * **
****** * ** ******* * * ***** * * * **** * ** ** = n - 1; i >= 0; i--){
*** * * ***** *** ****** ** **** * * *** * *** * ****** * ** ** ** * = i; j > 0; j--){
*** ** ** *** * ********** *** **** *** * * * ** ** ** *** ** ** ** **** * * * * * * **** * ** * i);
* ** * ** *** * *** *** * * * * *** * *** ** ** * * *
* * * ** * *** * * *** * * ** * ******* * *** *** ** **** *** ** ** * ** ** * *
* *** * ** ** *** ** *** *** ** *** *
}
*** * *** ** * * ******** 0;
}
answered
Oct 26, 2016
by
410342026
(
-105
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, j, n, f, k;
* * ** * * *** * * *** ** * * *** ** * ** &n,&f);
*** * ** * *** * * * = 0; k < f; k++){
**** * ** * * * * * ** * * ** * **** * = 1; i <= n; i++){
** ** * **** * *** ***** ** * *** *** * * * * ***** * **** * * * = 0; j < i; j++){
* * ** * * * * * * ***** ******* *** * ***** * ** * * * *** ** * * ** * ** * * * *** * ** * * ** * * * ** i);
* *** *** * * * ** * * * * * * **** * ** ** * * * ** * *
*** * *** * **** ** * * *** * * * ** ** ** ** *** ** ***** ***** * * *
* ***** ** * ** **** * * * ** ** ** ** **
* * * * * *** * * * * * ****** * **** ** ** * * **** = n - 1; i >= 0; i--){
* * **** * * **** * ** * ** ** ** * * * * ** * * ***** ** = i; j > 0; j--){
* * * **** ** * ** **** ** ***** * ******* ********* * * * ** ** * ***** **** *** ******* *** ******** * ** * i);
* **** ** * * * * * * * ** * * ** *** * * * ** ***** *** * * *
* * * * ** ** ** * ** **** **** ** * *** **** * *** ** ***** * ***** * ** ** *
************ ***** * * **** * * ** *** * **
}
* * * ***** ** * * * 0;
}
answered
Oct 26, 2016
by
410342026
(
-105
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(){
** * * * ** * * ** i, j, n;
* ** ** * *** ** * * * &n);
* * ***** *** ***** ** * = 1; i <= n; i++){
** * * *** ****** * * * *** * ** *** ** * * = 0; j < i; j++){
* ** ** * ***** ******** ** * * ** * *** * ** * * ** ********* ** **** **** * i);
** *** ** ** * ** * * * * * ** ****
** * * ***** * * * **** **** ** ** ** * ** ***
}
* ** * *** *** * * = n - 1; i >= 0; i--){
** * ** ****** * * ** * **** * * ** * * * = i; j > 0; j--){
** * * * * ** * * **** * *** * ** * ** ** * * * * *** ** * ** * * i);
** *** * * *** * ** * * * **** ** ** * *
** * * * ** ** *** * * ** *** ** * * * ****** *** * * * * *
**** ** ** * * ** * * *
** * * ** *** * * * 0;
}
answered
Oct 26, 2016
by
410342026
(
-105
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(){
* ** *** * * *** * * * ** * i, j, n;
* ** *** * ** ** * * ** * ***** *** * **** &n);
* * ** *** * ** * * * = 1; i <= n; i++){
* * * * * *** * * * ** * * ****** * ** ****** ** = 0; j < i; j++){
* ** ** ** ** * **** * * **** ** ******** ** **** **** *** ** * i);
*** * ** * ** * * ** *** *** ** ** *
* ** * * * * * ** ** * * * **** **** * * * ** * * *
}
*** * * * * ***** * ** *** * = n - 1; i >= 0; i--){
* * ** * * **** * ** ******* * ** ** * ** * * * ** = i; j > 0; j--){
* * ** * ** ** *** ** ** *** * ****** * ** *** ** * ** * * ** ** ******** j);
** * ** * ** * ** * * ** ** * ** * *
*** ** * ** **** ** ** * ** ****** *** * ** * * ** * *
*** * * *** * * * *
**** * *** ** * * * *** 0;
}
answered
Oct 26, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
** ** *** * * **** height,frequency,i,j,k;
**** ***** * * *** * ** ** *** *** ** * **
** * * * * * * *** ** ***
* *** **** **** ** *
* ** ** **** **** ** * * *
** *** *** * *** *** *
** * ** ** ** * * * * ** * ** * * * * * *** ******* * ***
**** * * * * * * ** * * ** *** ** *** * * *** ** ****
* ** * * ** * *** ** ** * ** ****
**** ** * **
** * ** ** * ** * * *** * ******* * *
{
* * ** ** * * * * ** * ** *** * * * ** ** ***** ;j--)
** ** * ** *** ** * ********** ***** ** * *** *** ** ** * ** *** ** **
* * ** * ** * * * * * * * * * *
*** * ** * * * * *
printf("\n");
}
}
answered
Oct 23, 2016
by
410425016
(
-124
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 time=0,p1;
* * * ** * * *** * **** * * **** * ** * **
for(p1=0;p1<time;p1++)
{
int t,up,p2;
printf("\n");
if(p1 != 0)
* ** ** ** * * * ** * * * * ** *** **** * * **
* * ** **** ** ** * * *** ** * ** * *** ** * *
* * ***** * * * ** ** ** ****** * * *** * * * *
* ** ** * * ***** *** * * * ***** * * * time it run
*** *** ** * ** * *** *** * * *** * ** * up<=9 )
* ** ** * **** ** * * * *** * * * ** * * *** ***
** * * ** * * * ** * ***** * * * * ** *
{
** *** * * *** ** *** ***** * ** * ** ** ** * * * ** * p3,p4;
** * * ** * ****** * * * * **** * * ***** * ** *
* **** * * ******** ** ** ** * ** * *** ** *** * * *** * ** ** * **
**** ****** * * * * * * * ** ** **** **** * ** * * ** *** ** (p3=1;p3<=up;p3++)
* * * ** *** ** **** **** * *** ** ** * ** ** * * * **** **
**** ***** * * * ** * * * ***** * *** *** **** * ** * * * ** * ** * * * * ***
* ** ** ** * * **** *** * * ** *** * ** * *** * *** * * ** * ** * **** * * ***
*** ********* ** * ** ******* * ** * *** * ** *** * * *** * *** *
* ** * * *** * * ** ** * ** * ** **** * * *** * * * * ***
* ** *** * * * * * ** * *** *** * ** *** * * ** * ** * * * ** *** ** * ** ****** * * * * **** ****
* * * **** * *** *** * *** ** * * *** * * ** * *** * ** * *** *** *
* ** * * * **** **** * * ** * * ** *** * *** **** * ** **
***** *** * * *** * * * *** ** **** * * (p3=up-1;p3>0;p3--)
** ** * * * ***** ***** * ** * * ******* * *
* * * ***** * * * * * **** * * ** ** ** * **** * * ** * * * * *** * ** **
** *** *** * * * * **** *** * ** * * *** ** * * **** ** ******* *** *
**** * * ** * ** * *** * *** * * * ** ****** * ** * *** * * ** *
*** ** * * *** * *** * ** * ****** * * ** * * ** * * **** * * * * *** * *** ** * ** *
***** ** * * ** ***** *** *** ****** ** * ***** * * * * * * * *
** * * * **** * * ** **** ** * ** *****
* ** ** * *** * ** ****** ** **** ** *
* * * ** * * * ** *** *** *** ** * ** *** *
}
}
return 0;
}
answered
Oct 19, 2016
by
410523022
(
-276
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
int a = 0, b = 0 , c = 0, d = 0, e = 0, f = 0, g = 0,h = 0, i = 0, j = 0, k = 0;
* ** * ** * ** ** ** **** ** * * &a);
******* ** **** ** * * * *
***** ** * ** * * * * *** * *** * &b);
** ***** * * ****** * * ****** &c);
* ** * ** * * * * = 1;d <= a;d ++)
{
** ** *** ** ** * * ** * ** * * *** * *** * = 1;e <= c;e ++)
* ** * ** ** * ** ** ** ** * *** **** * *** * *
** * *** * ** ** * * * * ** * ** *** ** ** * * * * = 1;f <= b;f ++)
*** *** ** ***** **** *** * ****** * * * ** * *** ** ***
** **** **** * * ** *** * *** **** *** ** ** ***** * * *** *** * ** = f;
* * * ** ** *** * * * * ** ** * * *** * * * ** * *** ** ******** = 0;h < f ;h ++)
******** * * * * * ** * ** ** * ** ** **** ** * ** * ** ***** * * ******** *** ** *** ***
** ** ***** * * * *** * ** *** ** * ** ** ** * ** *** * * ** ** * * *** *** * * * * * ***
* * * ****** * * ***** * * * * * ** * ** ** * *
****** * ** * * * * *** * ****** ** * * * * **** * * = b-1;i < b && i >= 1;i --)
* * **** * * * ** ** * **** ****** * ** * ** *********** *
** ** ** * * * ** ** * ** * *** * ***** * * * *** * *** * ** *** *** = i;
* ** * ** ** ** * **** * ** **** ********* * *** * * ** *** * * * * *** = i ;k <= i && k >= 1;k --)
* * * * ** ** * ** *** * **** * * * * * *** ** ** ** * ** *** * * * ** * *** ******
** * * **** ** * * * * * *** * *** **** * ** ** * ***** ** * * ** ** ** ******
*** ** ****** ** ***** * ** * ****** * ** ******** **** ** *
* *** * * **** *** * * * **** ** **** *
}
}
answered
Oct 18, 2016
by
Doloa
(
-122
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
4
5
...
7
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
61
answers
AC 20161013 作業 3
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13736 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.8k
views
0
like
0
dislike
91
answers
AC 20161013 作業 2
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13617 -
Available when:
Unlimited
-
Due to:
Unlimited
|
6.4k
views
0
like
0
dislike
117
answers
AC 20161013 作業 1
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13581 -
Available when:
Unlimited
-
Due to:
Unlimited
|
7.3k
views
0
like
0
dislike
69
answers
AC 20161019 作業 4
[Exercise]
Coding (C)
-
asked
Oct 19, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14288 -
Available when:
Unlimited
-
Due to:
Unlimited
|
5.2k
views
1
like
0
dislike
48
answers
AC 20161102 作業2
[Exercise]
Essay (Open question)
-
asked
Nov 2, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16865 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.2k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users