Faster input and output

后端 未结 2 1933
渐次进展
渐次进展 2021-01-29 15:37
#include
using namespace std;
int main(){
    int i,x,max=0;
    cin>>x;
    int a[x];
    for(i=0;i>a[i];
        if         


        
2条回答
  •  一生所求
    2021-01-29 15:54

    Avoid cin and cout, and use the C IO functions scanf and printf instead. You'll find they can be up to 5x faster than the slow c++ functions.

提交回复
热议问题