pat乙級 1094谷歌招聘問題

思路 用c++ string很快解決問題 #include "pch.h" #include <iostream> using namespace std; #include <string> #include <math.h> //判斷是否是素數 bool is_prime(int num) { if (num == 2 || num == 3) return true; else {
相關文章
相關標籤/搜索