本文共 390 字,大约阅读时间需要 1 分钟。
完全是一道水题,主要是熟悉了一下USACO的文件操作。
话说这也是这个学期的第一道题,希望这次自己能完完全全的实行好计划,能够好好的坚持下去,否则的话恐怕真的是前途堪忧了。。。。。 加油!!!代码如下:
/*ID: 15674811LANG: C++TASK: ride*/#include#include #include using namespace std;int main(){ ofstream cout("ride.out"); ifstream cin("ride.in"); char str1[100],str2[100]; while(cin>>str1>>str2) { int tmp1=1,tmp2=1; for(int i=0;i
转载地址:http://ykrfb.baihongyu.com/