PAT-乙-1074 1074 宇宙無敵加法器 (20 分)

代碼 #include <iostream> using namespace std; int main() { string s, s1, s2; cin>>s>>s1>>s2; while(s1.length()<s.length()){ s1 = "0" + s1; } while(s2.length()<s.length()){ s2 = "0" + s2; }
相關文章
相關標籤/搜索