# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
778215 | vjudge1 | Kocka (COCI18_kocka) | C++17 | 34 ms | 5340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define lalala ios_base::sync_with_stdio(false);cin.tie(NULL);
#define endl "\n"
#define ll long long
#define pb push_back
#define N 100001
#define f first
#define s second
int main(){
lalala;
int n;cin>>n;
int arr[n][4],yan[n][2],sutun[n];
int yes=0;
memset(yan,-1,sizeof(yan));
memset(sutun,0,sizeof(sutun));
for(int uwu=0;uwu<4;uwu++){
for(int i=0;i<n;i++){
cin>>arr[i][uwu];
if(arr[i][uwu]==-1)continue;
if(uwu==0){
yan[i][0]=arr[i][uwu];
sutun[arr[i][uwu]]=1;
}
if(uwu==1){
yan[i][1]=n-arr[i][uwu]-1;
sutun[n-arr[i][uwu]-1]=1;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |