diff options
| author | Aditya Naik | 2018-05-10 00:17:38 -0400 |
|---|---|---|
| committer | Aditya Naik | 2018-05-10 00:17:38 -0400 |
| commit | 56a296a51e95cf2b3164d15287f5ad445d167db6 (patch) | |
| tree | c1961198a1ff8f7f24f3ecccbc49150acdbb728a /rfp/rfp.cpp | |
| parent | 631ca6817d552db1725c7d6a445705f709302139 (diff) | |
more reorg
Diffstat (limited to 'rfp/rfp.cpp')
| -rw-r--r-- | rfp/rfp.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/rfp/rfp.cpp b/rfp/rfp.cpp deleted file mode 100644 index 2a4f918..0000000 --- a/rfp/rfp.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include <iostream> -#include <string> -using namespace std; - -int main(){ - float req, pro; - cin>>req>>pro; - int rfpnum=0; - while(req>0) - { - int i, j, k; - float cost,curcost=1000000000, comp, curcomp=0, numcomp; - string trash, curname, name; - ++rfpnum; - for(i=0; i<=req; i++) - getline(cin, trash); - - for(j=0; j<pro; j++){ - getline(cin, name); - cin>>cost>>numcomp; - comp = numcomp/req; - - if(comp>curcomp || (comp==curcomp && cost<curcost)){ - curname = name; - curcomp = comp; - curcost = cost; - } - - for(k=0;k<=numcomp;k++) - getline(cin, trash); - } - if(rfpnum>1) cout<<"\n"; - cout<<"RFP #"<<rfpnum<<"\n"<<curname<<"\n"; - cin>>req>>pro; - } - return 0; -} |
