-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprimetime.cpp
50 lines (37 loc) · 953 Bytes
/
primetime.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include<iostream>
#include<algorithm>
#include<cmath>
#include<climits>
#include<string>
#include<queue>
#include<vector>
#include<set>
#include<map>
#define lli long long int
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int test;
cin>>test;
while(test--){
lli line, ans=0;
cin>>line;
lli num_written[line], no_of_card[line];
vector<lli> v;
for(lli i=0; i<line; i++){
cin>>num_written[i]>>no_of_card[i];
for(lli j=0; j<no_of_card[i]; j++){
v.push_back(num_written[i]);
}
}
for(auto i= v.begin(); i!=v.end(); i++){
lli temp= *i;
for(auto it= v.begin(); it!=v.end(); it++){
temp+=
}
}
// cout<<"Case #"<<t<<": "<<ans<<endl;
};
return 0;
}