# 黎明程研第一次課堂作業 :::danger **作業分為基礎與進階,請完成基礎後再往進階邁進喔!** [zerojudge 使用說明](/SBqkbO1mQM6xb1FdEeT3rQ) 請務必完成[判分](/SBqkbO1mQM6xb1FdEeT3rQ?view#%E7%AC%AC%E4%B8%89%E6%AD%A5-%E8%A9%A6%E9%A1%8C%E4%BB%8B%E9%9D%A2) ::: ## 新手組(高一適用)---基礎C++挑戰 ### 基礎題 :::success ZeroJudge --- d049: 中華民國萬歲! https://zerojudge.tw/ShowProblem?problemid=d049 ::: ### AC Code :::spoiler ```cpp= #include<iostream> using namespace std; int main(){ int y; //宣告"數字(int)"" cin>>y; cout<<y-1911<<endl; //1911年是民國0年 return 0; } ``` | 難度 |範圍 | 提示| | -------- | -------- | -------- | | ⭐ |運算子 |1911年是民國??年| ::: ### 進階題 :::danger 當你寫出基礎題後...,再挑戰進階題吧!! 本進階題可不必完成,當然...如果你很閒的話可以試試這題... ::: :::success ZeroJudge --- a001: 哈囉 https://zerojudge.tw/ShowProblem?problemid=a001 ::: ### AC Code :::spoiler ```cpp= #include<iostream> using namespace std; int main(){ string a; //宣告"字串(string)" cin>>a; cout<<"hello, "<<a<<"\n"; return 0; /*寫完作業後記得上傳至google classroom 這樣才會納入期末計分喔!(聽說有獎品...)*/ } ``` | 難度 |範圍 |提示| | -------- | -------- | -------- | | ⭐ |cin、cout、string |無| ::: ###### tags: `社內作業` {%hackmd @naiye130/__style %}
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up