a001: 哈囉
Tags : 基本輸入輸出
Accepted rate : 736人/991人 ( 74% ) [非即時]
評分方式:
Tolerant

最近更新 : 2021-01-08 11:38

Content

學習所有程式語言的第一個練習題
請寫一個程式,可以讀入指定的字串,並且輸出指定的字串。

Input

指定的文字

Output

輸出指定的文字

Sample Input #1
world
C++
mary
Sample Output #1
hello, world
hello, C++
hello, mary
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (20%): 1.0s , <1K
公開 測資點#1 (80%): 1.0s , <1M
Hint :

程式說明:因為系統會賦予數量不一的測試資料來測驗您的程式是否正確,因此必須先以一個 while 迴圈來讀取所有的測試資料。

如有疑問,請參考 範例程式碼

Tags:
基本輸入輸出
出處:
Brian Kernighan [管理者:
zero (管理員)
]


ID User Problem Subject Hit Post Date
2720
1853325-6@g.... (李泓熹P5A08)
a001
Re:Take the anser a011
25 2025-10-26 17:37
2696
1751553-x@g.... (P6A32劉玥彤)
a001
48 2025-10-16 11:17
2680
1752786-4@g.... (P6A08林敬晉)
a001
154 2025-07-01 17:59
2656
1755234-6@g.... (P6A40鍾子睿)
a001
anser
98 2025-06-19 11:53
2649
1752786-4@g.... (P6A08林敬晉)
a001
pls see my answer
90 2025-06-18 10:19