Submission
Status: 
	
	PPPPPPPPPP
Subtask/Task Score: 
	
	100/100
Score: 100
User: NovemNotes
Problemset: จับคู่เลขมงคล
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-15 14:04:06
#include <bits/stdc++.h>
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);cin.tie(NULL);
    int n;cin >> n;
    bool ans=false;
    vector<int> v(n);
    for(auto &x:v)cin >> x;
    int target;cin >> target;
    for(int i=0;i<n;i++){
        for(int j=i+1;j<n;j++){
            if(v[i]+v[j]==target){
                cout << v[i] << " " << v[j] << "\n";
                ans=true;
            }
        }
    }
    if(!ans){
        cout << "No\n";
    }
    return 0;
}