4 like 0 dislike

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

Input 1:

^jibm\opg\odjin

Output 1:

congratulations

 

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

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

retagged by | 249 views

3 Answers

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

* *** * *
* ** 0;
}
answered by (122 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 (122 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
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.63.13
©2016-2020

Related questions

4 like 0 dislike
3 answers
[Normal] Coding (C) - asked Jan 3, 2018 in 程式設計(一) by semicolon (5.2k points)
Available when: Unlimited - Due to: Unlimited
| 129 views
4 like 0 dislike
4 answers
[Normal] Coding (C) - asked Jan 3, 2018 in 程式設計(一) by thopd (11.3k points)
Available when: Unlimited - Due to: Unlimited
| 154 views
10,114 questions
106,717 answers
92,144 comments
3,246 users