4 like 0 dislike
683 views

請寫出一個程式讓看似亂碼的文字轉變回英文

Input 1:

^jibm\opg\odjin

Output 1:

congratulations

 

p.s. 使用迴圈時的中止條件不能是'/n'而是EOF

[Normal] Coding (C) - asked in 程式設計(一)
ID: 40624 - Available when: Unlimited - Due to: Unlimited

retagged by | 683 views

3 Answers

0 like 0 dislike
Hidden content!
** * **** * *
*********** * *
int main()
{
* * ** * * str[50];
** * ** ** * * * * *****
**
****** i;
**** * *** ** ***** ****
 {
** *** * ** * * ** * * * ** * * * * ** *
 }

** * *
** *** 0;
}
answered by (114 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
*** ****** ** **
** ********** ** ** *
int main()
{
* * *** char arr[1000];
**   * ** ** ** ** ***** **
**** *** * ***** {
* * *   ** ** int i;
** *** * * * * * *** ***** * ** ***
**** **** * **   {
** * ** * *** ** *** *** ** * **** * ** *
**** * *** * ** * * ** }
**** * * * * ***** * ******** * * ** ***
** ** ** * }
***** ***** return 0;
}
answered by (100 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
#include *** *******
#include *** **
#include ** * * * * **

int main()
{
** * * *** * char str[100];
* * * * ** * int flag,i;
** ***** ** ** * * ** *** ** ***** * * **
**** * *** *** ** **** do
* * ** * * ** * * ** {
* * ** ** * * **** ** ** flag=0;
* * *** * ** * *** * ** ** ***** * ***** * * ** * ** *
** *** * * * ** * * * * * * ***** {
* * *** ** ** * * * * * * * ** *       ** * ***   *** *** * * * * * ** *** * * * ** *   )
* * **               {
* * * * *** * * * ** ** * ** * ** * * ** * * * flag=0;
** *** *** * ** * ** * * * * * * * }
* *** * * * * **** * *** * * ***** * * ** * ** else
* * ** ** *** * * * ** * * *** * * * * {
** *** ** * ** * * ** * ****** * *** ** ** * ** *** * *** *** * * flag=1;
** *** * ** * * ** * * ** * ** *** **** *** * ** ** *** break;
* * **** ** * * ** * ** * ** * * * * * }

** * * ** * ** ** * *** }
* ** ** * ** ** ** * ** * ****
*** ** * * * ** ** ** *   ** * ** * *** * ** * **** * ** * ***
** * ** **** * *** ** * * *** ** * ** **** ** **** ** str[i]++;
** **** *** * * * ** ** ******
******* * * * ** * * * ** ** ****** * *** ******** *
* **** ** * *** return 0;
}
answered by (114 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.7.81
©2016-2024

Related questions

4 like 0 dislike
3 answers
[Normal] Coding (C) - asked Jan 3, 2018 in 程式設計(一) by semicolon (5.2k points)
ID: 40621 - Available when: Unlimited - Due to: Unlimited
| 374 views
4 like 0 dislike
4 answers
[Normal] Coding (C) - asked Jan 3, 2018 in 程式設計(一) by thopd (12.1k points)
ID: 40618 - Available when: Unlimited - Due to: Unlimited
| 478 views
12,783 questions
183,443 answers
172,219 comments
4,824 users