제출 #1260686

#제출 시각아이디문제언어결과실행 시간메모리
1260686riddles세계 지도 (IOI25_worldmap)C++20
5 / 100
2 ms580 KiB
#include "worldmap.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef map<ll, ll> mp;
typedef pair<ll, ll> pll;
typedef queue<ll> qi;
typedef vector<ll> vi;
typedef vector <vi> vvi;
typedef vector <pll> vpl;
typedef vector <string> vs;
#define YES cout<<"YES\n"
#define Yes cout<<"Yes\n"
#define NO cout<<"NO\n"
#define No cout<<"No\n"
#define f first
#define s second
#define pb push_back
#define all(x) begin(x), end(x)

int n, m;
vector<int> a, b;

vector<vector<int>> create_map(int N, int M, vector<int> A, vector<int> B) {
  n=N;
  m=M;
  a=A;
  b=B;
  vector<vector<int>> ans;
  if(n>=3){
    ans=vector<vector<int>>((n-1), vector<int>((n-1), 1));
    for(ll i=0; i<n-1; i++){
      for(ll j=0; j<n-1; j++){
        if(i%2==0) ans[i][j]=j+1;
        else ans[i][j]=j+2;
      }
    }
  }else{
    ans=vector<vector<int>>((n), vector<int>((n), 1));
    if(n==1) ans[0][0]=1;
    else{
      ans[0][0]=1;
      ans[0][1]=2;
      ans[1][0]=2;
      ans[1][1]=1;
    }
  }
  return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...