C++标准输出cout与printf都可以,printf用法更死板一些. #include <iostream> int main(int argc, char** argv) { using namespace std; #普通输出 cout<<"This is cout"<<endl; printf("This is printf\n"); #如果要输出字符串,则printf记得加上c_str(),把std:string转成c
1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is defined to be /, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct numbers in the two sets. Yo