比赛 20120302 评测结果 WAWWWWWWWW
题目名称 田忌赛马 最终得分 10
用户昵称 QhelDIV 运行时间 0.000 s
代码语言 C++ 内存使用 0.00 MiB
提交时间 2012-03-02 21:08:45
显示代码纯文本
  1. #include <fstream>
  2. using namespace std;
  3. ifstream fin("horsea.in");
  4. ofstream fout("horsea.out");
  5. int n,S1[10000],S2[10000];
  6. /*void Ah()
  7. {
  8. int i;
  9. fin>>n;
  10. for(i=1;i<=n;i++)
  11. fin>>S1[i];
  12. for(i=1;i<=n;i++)
  13. fin>>S2[i];
  14. for(i=n;i>=n-2;i--)
  15. if(S1[i]<=S2[n])
  16. {
  17. if(S1[i]<S2[n])
  18. total++;
  19. break;
  20. }
  21. for(j=i-1;j>=n-2;j++)
  22. if(S1[j]<=S2[n-1])
  23. {
  24. if(S1[j]<S2[n-1])
  25. total++;
  26. break;
  27. }
  28. if(j!=n-2 && S1[n-2]<=S2[n-2])
  29. total++;
  30. if(total==2)
  31. fout<<1<<endl;
  32. if(total==1)
  33. fout<<-1;
  34. if(total==0)
  35. fout<<-2;
  36. }
  37. */
  38. int main()
  39. {
  40. // Ah();
  41. fout<<1<<endl;
  42. fin.close();
  43. fout.close();
  44. return 0;
  45. }