[백준 17269번] 이름궁합 테스트 (C++)
문제링크 : https://www.acmicpc.net/problem/17269#include using namespace std;typedef long long ll;int arr[26] = {3, 2, 1, 2, 4, 3, 1, 3, 1, 1, 3, 1, 3, 2, 1, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1};vectorv;string result;void cal(vectorv){ if(v.size()==2) { result = to_string(10*v[0]+v[1])+'%'; return; } vectortmp; for(int i=0; i> N >> M >> s1 >> s2; int len = max(N, M); f..
백준/실버
2025. 7. 9. 18:43