这样也错,无语了啊
#include<iostream>
using namespace std;
void main()
{
	long i,l,ll,r,j,rr;
	char a[10]={\'X\',\'H\',\'U\',\'S\',\'T\',\'A\',\'C\',\'M\'};
	a[8]=NULL;
	while (cin>>l>>r)
	{
		ll=l%8;
		if (r-(l+8-ll)>8)
		{
		rr=(r-(l+8-ll))%8;
		for (i=ll-1;i<r;i++)
			cout<<a[i%8];
		cout<<endl;
		}
		else {for (i=l-1;i<r;i++)
			cout<<a[i%8];
		cout<<endl;
		}
	}
}
是不是数据有问题啊,我晕了啊!!!!!!
应该是long装不下,10^12,你注意一下
© 2015 HUST ACMICPC TEAM. All Right Reserved.