我生來赤裸,思想不正的是你
" 或鮮少人知,或家喻戶曉,在想甚麼,目光狹窄的可憐人,跳脫你那可悲的框架吧,一事無成的遠征騎士"
在工程師的眼裡,程式碼終究不是程式,而是其所對應的輸出。
第一行註明語言 (語言:python or c++)
並輸入若干行對應語言之程式碼
c++:
只會有 int main(), 變數宣告, cout 以及 for loops
不考慮 include, return 以及 namespace (預設 std and iostream)
換行使用"\n"不含引號
python:
只會有 print, 變數宣告 以及 for loops
不考慮 import, functions 以及 classes
注意: python print 默認換行, c++ cout 則沒有
架構(pseudocode):
set variable to content
for i (0 to (variable or content)) do
DISPLAY (variable or content)
end for
BOTH CASE SENSITIVE
輸出對應輸出
c++ int main(){ int a=30; for(int i=0;i<a;i++){ cout << "hello"; } }
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
沒有發現任何「解題報告」 |