Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long long int test=0,min[10000], max[10000];
- char tire;
- cin>>min[0]>>tire>>max[0];
- a:
- if(test>=min[0] && test<=max[0])
- {
- test+=1;
- goto a;
- }
- else
- {
- cin>>min[1]>>tire>>max[1];
- b:
- if(test>=min[1] && test<=max[1])
- {
- test+=1;
- goto b;
- }
- else
- {
- cin>>min[2]>>tire>>max[2];
- c:
- if(test>=min[2] && test<=max[2])
- {
- test+=1;
- goto c;
- }
- else
- {
- cout<<test<<endl;
- return 0;
- }
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment