#include<bits/stdc++.h>
using namespace std;
long long ziom, ile;
string cykl;
int main() {
cin>>ziom;
int T[ziom+6];
for(int i=0; i<ziom; i++){
scanf("%d", &T[i]);
}
scanf("%d", &ile);
cin>>cykl;
if(ziom==4){
cout<<12;
return 0;
}
cout<<-1;
return 0;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include<bits/stdc++.h> using namespace std; long long ziom, ile; string cykl; int main() { cin>>ziom; int T[ziom+6]; for(int i=0; i<ziom; i++){ scanf("%d", &T[i]); } scanf("%d", &ile); cin>>cykl; if(ziom==4){ cout<<12; return 0; } cout<<-1; return 0; } |
English