杭电oj 1004

杭电oj的1004

从这个题开始 我会把自己ac的题目放在上方便自己查看 也顺便帮助别人吧

#include
#include
using namespace std;
int main()
{
    int n;
    while(cin>>n&&n!=0)
    {
        string* a=new string[n];
        for(int i=0;i>a[i];
        }//保存字符串 
        int Sum=0;
        int Post;
        for(int i=0;iSum)
                {
                    Sum=sum_temp;
                    Post=post_temp;
                }
                
             }
            }
         }
         //输出流
         cout<

你可能感兴趣的:(杭电oj 1004)