0 like 0 dislike
8.9k views
Show more...
[Exercise] Coding (C) - asked in 2016-1 程式設計(一)AC by (18k points)
ID: 20993 - Available when: Unlimited - Due to: Unlimited

reshown by | 8.9k views

144 Answers

0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<stdlib.h>

#include<ctype.h>

#include<string.h>



int main()

{

    int h,n,m,i,day_h,day=0;
** * *** *** ** *** ** ** **** ** * * *
* ** * *** ** ** * * * ** *** ** * ****
** * ** * ** ** * * ***** * * ***** * * *
** * * * * *** * * ** * **** * * * *** ***

    if(n <= m && h > i+n)
* ** ** ** ** * * *** * **** **** * * ** *** *** * * * this is impossible!");

    else if(i==h)
* * ** ** ** ** **** * * * *** * * * ***** ** * * * ** *

    else    
* ** ** ** * * ****** * ** * *** ******* **** ** *
*** *** ***** ****** * * *** * *** * * ** * * *
** *** * * ****** * *** **** *** * ** ** * * **** *** ** * ** **
** ** ** ** ** **** ** * ** **** *** * ** **** **** ** * * *
** ** ** * *** *** *** *** ** **** * * **** **** * ** * * ** ** **
** * **** * ** **** * ** * * * * * *** ** * **** ***
*** * **** * ** ** ** **** * * ** * ** * * * * ** * * ** * ** * *** * * **
* ** **** * ** * * * ***** * * **** **** *** *** ** ** ** ** * * ** ****** **** ** **** ****
******* * ** ** * * *** * * *** * * ** ***** ** **** *** *
** ** **** *** * ** **** * * * ** * **** * **** * * **** *
* ** * * * ** ** ** ** ** *** * ** * ** * ******** * * * ** ***** *** **** * * ** **
* * * *** * ** * ** * **** ** * * ***
* * ** ****** * ** * * ** 0;

}
answered by (-102 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<stdlib.h>

int main()

{
* * ** ** ** * **** **** h;
* * * * * * n;
* * ** *** ** * * **** m;
*** * **** * *** ** * * i;
* *** ** ***** ** * * * * day;
** * **** * ******* ** * * ans;
* ***** ** * *** ** swn;

scanf("%d %d %d * **** ***** ***** ** * * *** * ***



if(n<=m)
* ** ** * * * *** **** * *** is impossible!");


* **** ** *** ** ****
** * ** * * ** * * **
* ** ** **** * * * * * **** * ** ** * ** ** ** *
*** ** * ****** ** * * * * * ** **** * * * **** **


*** * * ** ** *** * ** ** *** * ** **
* ** * * * ***** ** * *** * ** * *** ****
***** * ** * * ***
** ** * ** *** *** * ** * * * ** * * * ** **
**** *** * * *****

return 0;

}
answered by (-248 points)
0 like 0 dislike
Hidden content!
#include<stdlib.h>

#include<stdlib.h>

int main(void)

{
** * *** *** ** **** ** h,n,m,i;
** * * * ** **** * * ** * * %d %d ** * * * * *** *** * * ** ** **
* * * * * *** ** * ** (n<m)
* * ****** * * ****
*** * * * ** * * ** *** ** *** * * *** * ** ** ** * * * * ** is impossible!");
* * * ** * * *
** ** * * **** ** *
*** * * ** * *
****** ***** *** **** * *** * **** * * * *** day;
* *** * * ** *** ***** * ** ** ** **
** * ** * * ***** ** *** ** * ****
** ** ** ***** * *
*** ** * **** **** * * **

}
answered by (-124 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include ** * * ** *

int main()

{
* ******** * **** * h,n,m,i,day=0;
* ** **** * ***** ** * * * ***** * * ** ** * *** * ***
******* * *** * * *****
** *** * * ** *** (day >0)
***** * * * * * * * * * * *** ** ** * **** * * * * ***
* ** * * ** * *
* *** ** ** ** * * ** ** * * **** * ** *** ******** is impossible!");
** * ** * ******* ** 0;



}
answered by (-158 points)
0 like 0 dislike
Hidden content!
#include * *** * * ** ****



int main(voild)

{



int h=0,n=0,m=0,i=0 ,r=0,q=0,k=0,p=0 ,s=0,j=0;
**** *** * * * ** * * * * **** ******* ******* ** *****
* **** * *** **** * * * ** * *
** * ** * ** * ** * * *** * * * * *
***** * * ** ** * * **** * * *** ** *** * *


* * ****** * * = (h-i);



   q = (n-m);



   k = r/(r-q);



   s = r - (r-q)*k ;


** *** ** * * ** ***** *
*** ** *** * *
** ** * ** ** ** * **** *** ***** * * **
*** * ** ** ** * **


***** ** * * * * ** * * ** * ****** * * * * **
*** * * * **** ** * *** ** ****** ** * **** ***


* **** ** * *** ***** * *
* ***** * *** * ** ** *** ****


* * ****** * ** * ** * * * ** **** *** ****** ** ****


* ** **** ** * * * ** **
* * ** * *** * * ** * * ** * * * ** ** ** ** ;


* *** * ** *** * * ***** ** ** * * ** * *** *** * *



   }
* * * ** *** * * ***** *
* * **** ** ** * * ***** ***** is posible");


*** **** * * * 0;

}
answered by (-72 points)
0 like 0 dislike
Hidden content!
#include<stdlib.h>

#include<stdio.h>

#include<ctype.h>

#include<string.h>



int main()

{

    int h,n,m,i,day_h,day=0;
** * * *** ** * * * * ** * * **** ** ***
** ** * *** * * **** ** * ** ** *** *
* ** ** ** * * * ** ** * * * *** ** ** ***
* * * * ** * *** *** * * * * **** ***

    if(n <= m)
**** **** * *** * * ** ** ****** ** ** * * * **** ** *** * is impossible!");

    else if(i==h)
* ** *** * * * ** * * ** ** * **** * ** ***** * **

    else    
* ** * ** ** ** *** ** * * *** * ** * * ***
* *** *** ** ** *** * * * ** *** ** *** *
** * * ** * ** **** *** * *** ***** * * ** ** ** * ****
* ***** ** ***** ** * ** ** * **** *** ** * * ** **** * * *
* * ** * ********* * * * * ** *** * * * * * *** *** * * ** * ******
* * * * * ****** ***** *** *** * ** * * * **** ** * ***** * **** *
* * * ** ** * ** **** ****** * * * ** * * *** * * ** * ** **** **** * * * * *** * ** * *** *
* * * * ** *** * *** ** ** * *** * ** ** ** * * ** * ** * ** *** * * *** * * ***
* * * ****** * * ** *** ****** ** * * * * * * * ** ** * * * ********* *
* * **** * *** * * *** *** * * *** * ** ** * ****** ** *
* **** ** ** * ** ** * * **** *** * ** ** ** ** *** * ** * * **** ** * ** * * ** ***
*** * *** **** * * ** * *** ** * * * ** *

    return 0;

}
answered by (-102 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<stdlib.h>

int main()

{

    int h;
* ** * ** * **** ** * n;
* * ********* ** * * ** * m;
* * * * * * * ** * *** i;
** * ** * ** * day;
** *** * * ** * ** * * * ans;
******** * ** * ** * ** ** swn;

scanf("%d %d %d *** * *** * ******** * ** * ** ** *



if(n<=m)
* * * * * **** ** ********* is impossible!");


* * * *** *** * * ** * *

    {
**** * * * ** ** *** * * * * * *** ***** ** **
* * * ** ***** ** *** **** **** ** ** ***** * * * *
*** * ** * * **** * * ****** * * ** ** * * * ** *** ******
* ****** * ** **** * * * ** * ** ** * * *
* * ** * * ** * * * ** * * **** * * * * * * *
* *** ****** *** *** * * * ** ** * *
** * * *** ** * ** * * **** *** * * if(((n-m)*(day-1)+i)<h-m)
****** * * *** * **** * ******* * *** * *** **
* ****** * * * ** ** ** * * * * ** * * ****** * * * * * * *** *
******** * ** * ** *** ***** ** * * ** * **** * * **
* * * * * *** * * * *** * ** * *** * *
* * * * * * * **** ** ** ** *** ** *
* * **** * ** ** ** ** *
*** *** * * * **** * * * * * *** * **** * *****

    }

return 0;

}
answered by (-248 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include * ** * ** ***

int main()

{
** * * ** ** ** ** h,n,m,i,day=0;
* *** ** ******* *** ******* * *** ** * * * *** ** **** * * ** *** *
*** **** * **** *** ** **** * ***
* * * ** *** (day ==0)
* * * * * *** ** ** * *** ***** * ****** **** *** * * ** *** is impossible!");
* *** * ** ** ** *** **** if(day<0)
*** **** * * * **** *** *** * * ******* *** * * *** is impossible!");
* ** * ** * * *** * * * *
** * *** ** **** **** ** ** * * * * *** * * * * * * * * * **
** * ** * ** * * ** ***** 0;



}
answered by (-158 points)
0 like 0 dislike
Hidden content!
#include<stdlib.h>

#include<ctype.h>

#include<string.h>



int main()

{

    int h,n,m,i,day_h,day=0;
** * * * * ** * *** **** ** * ** ******
** * ** *** *** * ******** **** * ** * * ** ** *
** ** * * * * * ** **** ** ** ** ***
* ** ** **** **** *** * ** *** ** *

    if(n <= m)
** * * * * ** ** * * ** **** * *** **** this is impossible!");

    else if(i==h)
***** * * ** ** ** * ******** *** *** * * * * *********** **** *

    else    
* * *** ** * *** *** * * ** * ** *** *** ***** *
*** ** * * * ******* * ****** * * ** *****
*** **** **** ** * * * * **** **** ** * ** *** ***** * * ** *** *
* * ***** *** ** *** * ** *** **** * * * * ** ** * ** * * * *
** * ** * * *** *** * * * ** * ** ***** ** * ** * * * ***** * ** ***
** * * ** ***** **** * ** ** * *** * * * * * * * * ** ** *
** ** ** **** ***** **** **** *** * ** * *** **** *** *** ******* ** * * * * **** * * ** *** ** * ** * ** ** * *
* ** ** * * * ** * **** * * * * *** * *** ** *** * *** * * * * ** *** * **
******** ** ****** * ********* *** ** *** * * *** * * *
** * *** ** ******** * *** *** * **** ** ** * ** ** * * * * * *
* * * * * ** * ***** ** * ** **** * * ** * *** * ** ** * * * * *** * ** ** * ** ********** *
* **** ** * * ** * ** * ** *** * * * * ** **** *

    return 0;

}
answered by (-102 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main(void)

{
* **** ** ** ** ** * * * h=0,n=0,m=0,i=0;
****** * ** * * * * k;
** ** ** ** **** * * **** * * ***** *** * *** *** * * * * *** *
* * * **** * *** * * ** * ** ** ** **
* **** **** * ***** * ***

    
** *** * ** * ***** *** * * * * *
* * * * *** * * *
***** * **** * **
* **** * * * * * ** * ** *******
* * * * ** * * * * * * ***
* * **** ** * ** * ** * * if(n-m<0)
* * * * *** * * *** * * ****** * * **** is impossible");
* ***** *** * * ** *** * 0;
* * * ** * * *
* * * * * *** *** * * *

}
answered by (-8 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.127.116
©2016-2025

Related questions

0 like 0 dislike
3 answers
[Exercise] Essay (Open question) - asked Jan 5, 2017 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 20995 - Available when: Unlimited - Due to: Unlimited
| 606 views
0 like 0 dislike
28 answers
[Exercise] Coding (C) - asked Jan 5, 2017 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 20984 - Available when: Unlimited - Due to: Unlimited
| 2.1k views
0 like 0 dislike
43 answers
[Exercise] Coding (C) - asked Jan 5, 2017 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 20980 - Available when: Unlimited - Due to: Unlimited
| 3.1k views
0 like 0 dislike
39 answers
[Exercise] Coding (C) - asked Jan 5, 2017 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 20978 - Available when: Unlimited - Due to: Unlimited
| 2.8k views
0 like 0 dislike
16 answers
[Exercise] Essay (Open question) - asked Jan 5, 2017 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 20974 - Available when: Unlimited - Due to: Unlimited
| 1.6k views
12,783 questions
183,442 answers
172,219 comments
4,824 users