Wormholes Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 68097 Accepted: 25374 题目链接:http://poj.org/problem?id=3259 Description: While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhol
FJ的字符串 #include<iostream> #include<string.h> using namespace std; int main(){ string str=""; int N; cin>>N; for(int i=0; i<N; i++){ string s=str; str.append(1,'A'+i); str+=s
题目描述 Farmer John and his cows are planning to leave town for a long vacation, and so FJ wants to temporarily close down his farm to save money in the meantime. The farm consists of NNN barns connected with MMM bidirectional paths between some pairs of