Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

不要误导众生,cout 760 毫秒,printf360毫秒

Posted by fanhqme at 2008-09-30 15:57:38 on Problem 1033
In Reply To:不知道大家是怎么过的,我cout<<"1 1\n"输出到10000 次 压力测试时间为11.312秒,晕。输出是不是要一下特殊处理。 Posted by:piratelzs at 2007-04-20 22:02:20
#include <iostream>
#include <ctime>
using namespace std;
int main(){
    int t1=clock();
    for (int i=0;i<10000;i++)cout <<1<<' '<<1<<endl;
    printf("%d\n",clock()-t1);
    getchar();return 0;}


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator