| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1364245 | jojeonghoon | Second Run (KAISTRUN26SPRING_A) | C++20 | 22 ms | 2000 KiB |
#include <bits/stdc++.h>
#define ll long long
#define int ll
#define vi vecotr<int>
#define rep(i,s,e) for(int i=(s); i<=(e); i++)
using namespace std;
const int LM=100100;
int N,M;
int ch[LM], ans[LM];
signed main() {
ios_base::sync_with_stdio(0);cin.tie(0);
cin>>N>>M;
rep(i,1,M){
int x,y,z,w,k;cin>>x>>y>>z>>w>>k;
if(ch[x]&ch[y]&ch[z]&ch[w]) continue;
for(int i:{x,y,z,w}){
if(!ch[i]){
ch[i]=1; ans[i]= (64 + k - (ans[x]+ans[y]+ans[z]+ans[w]) )%4;
}
}
}
rep(i,1,N) cout<<ans[i]<<" ";
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
