比赛 |
20120302 |
评测结果 |
WAWWWWWWWW |
题目名称 |
田忌赛马 |
最终得分 |
10 |
用户昵称 |
QhelDIV |
运行时间 |
0.000 s |
代码语言 |
C++ |
内存使用 |
0.00 MiB |
提交时间 |
2012-03-02 21:08:45 |
显示代码纯文本
- #include <fstream>
- using namespace std;
- ifstream fin("horsea.in");
- ofstream fout("horsea.out");
- int n,S1[10000],S2[10000];
- /*void Ah()
- {
- int i;
- fin>>n;
- for(i=1;i<=n;i++)
- fin>>S1[i];
- for(i=1;i<=n;i++)
- fin>>S2[i];
- for(i=n;i>=n-2;i--)
- if(S1[i]<=S2[n])
- {
- if(S1[i]<S2[n])
- total++;
- break;
- }
- for(j=i-1;j>=n-2;j++)
- if(S1[j]<=S2[n-1])
- {
- if(S1[j]<S2[n-1])
- total++;
- break;
- }
- if(j!=n-2 && S1[n-2]<=S2[n-2])
- total++;
- if(total==2)
- fout<<1<<endl;
- if(total==1)
- fout<<-1;
- if(total==0)
- fout<<-2;
- }
- */
- int main()
- {
- // Ah();
- fout<<1<<endl;
- fin.close();
- fout.close();
- return 0;
- }