| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
谁能解释这个程序为啥可以过A+B? 太NB了~#include <iostream>
#include <cstdio>
using namespace std;
typedef long long llg;
llg a, b;
llg f(llg a, llg b, int depth)
{
llg i, j, k, l, v, m, ks;
if(depth == 100000000) return a+b;
else return f(a, b, depth+1);
}
int main()
{
while(cin>>a>>b) cout<<f(a, b, 0)<<endl;
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator