www.pudn.com > zhejiang_university_acm_onlinejudge_code.rar > zp1099.cpp
#include#include //#include using namespace std; string word; int word_l,poi; int main() {//ifstream cin("input.txt"); //ofstream cout("output.txt"); poi=0;word=""; while(cin>>word) {word_l=word.length(); if(word=="
"){cout<") {if(poi!=0)cout< " && word!="
") {if(poi==0){cout<0 && poi+word_l+1<=80){cout<<" "< 0 && poi+word_l+1> 80){cout<