-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path1.cpp
More file actions
49 lines (48 loc) · 812 Bytes
/
Copy path1.cpp
File metadata and controls
49 lines (48 loc) · 812 Bytes
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
//#include <iostream>
//#include <algorithm>
//
//using namespace std;
//
//int main() {
// int n,counter=0,counter2=0;
// cin>>n;
// int arr[n],arr2[n],arr3[n];
// for(int i=0;i<n;i++){
// int x,y;
// cin>>x>>y;
// cin.ignore();
// arr[i]=x;
// arr2[i]=y;
// arr3[i]=y;
// }
//
// for(int i=0;i<n;i++){
// if(arr[i]==arr2[i])
// ++counter;
// }
//
// sort(arr2,arr2+n);
// for(int i=n-1,j=0;i>=0;i--,j++)
// {
// if(arr2[i]==arr3[j])
// ++counter2;
//
// }
// if(counter!=n)
// cout<<"rated";
// else if(counter==n&&counter2==n)
// {
// cout<<"maybe";
// }
// else{
//cout<<"unrated";
//
// }
//
// return 0;
//}
#include<iostream>
int main(int argc, const char *argv[]){
int a[]={1,2,3,4,5,6};
std::cout << (1+3)[a] - a[0] + (a+1)[2];
}