模板&工具


DEV C++5.11 下載 

 

 

OJ1

#include<iostream>
using namespace std;
int main(){
    *|*
    return 0;
}

  

 

OJ9

#include<bits/stdc++.h>
using namespace std;
int main(){
    *|*
    return 0;
}

  

PKOJ

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
    *|*
    return 0;
}

  

 

 setP

cout<<fixed<<setprecision(2*|*);

  

 

 

隨機數發生器

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,b,e;
    srand((unsigned)time(NULL));
    cout<<"Nums=?    ";cin>>n;
    cout<<"Start=?   ";cin>>b;
    cout<<"End=?     ";cin>>e;
    while(n--)cout<<(rand()%(e-b+1))+b<<" ";
    return 0;
}

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM