오블완
[실5] 11650 - 좌표 정렬하기
using IntPair = pair;int main(){ int n; cin >> n; vector v(n); for (int i = 0; i > v[i].y >> v[i].x; } sort(v.begin(), v.end()); for (int i = 0; i
[실5] 1181 - 단어 정렬
bool Cmp(string& left, string& right){ int a = left.length(), b = right.length(); if (a == b) return left > n; vector v; for (int i = 0; i > str; if (find(v.begin(), v.end(), str) != v.end()) continue; v.push_back(str); } sort(v.begin(), v.end(), Cmp); for (int i = 0; i
[브1] 16433 - 주디와 당근농장
int main(){ int n, r, c; cin >> n >> r >> c; bool isOdd = ((r + c) % 2) != 0; //char ch = isOdd ? '.' : 'v'; for (int i = 0; i
[HackerRank] The Bomberman Game
// 상하좌우IntPair dir[]{ { 1, 0 }, {-1, 0 }, { 0, -1 }, { 0, 1 }};vector bomberMan(int n, vector grid){ vector> pos; int r = grid.size(), c = grid[r - 1].size(); if (0 == n % 2) { for (int y = 0; y = 0 && ny = 0 && nx
[브3] 11908 - 카드
int main(){ int n; cin >> n; Vec v(n); for (int i = 0; i > v[i]; sort(v.begin(), v.end()); int res = 0; for (int i = 0; i
[브2] 13235 - 팰린드롬
int main(){ string str, rstr; cin >> str; rstr.assign(str.rbegin(), str.rend()); for (int i = 0; i
[브3] 29722 - 브실혜성
int main(){ // 문자열 생성 string str; int n; stringstream ss; cin >> str >> n; ss nums; while (ss >> num) nums.push_back(abs(num)); // 튜플 생성 auto t = make_tuple(nums[0], nums[1], nums[2]); int y, m, d; tie(y, m, d) = t; d += n; m += (d - 1) / 30; d = (d - 1) % 30 + 1; y += (m - 1) / 12; m = (m - 1) % 12 + 1; cout
[Unity] UI - Localization (언어 번역) 레거시
인덱서를 사용해서 테이블에서 해당되는 언어로 string을 가져옴using System;using System.Collections;using System.Collections.Generic;using UnityEngine;public class Csv_loader_manager : Singleton_local{ // ------- Variables ------- List> m_csv_list = new List>(); string m_current_language = "english"; // Accessing to m_csv_list by value public object this[int _hash] { ..