1#include <iostream>
2#include <fstream>
3#include "header.h"
4#include <queue>
5#include <bitset>
6using namespace std;
7
8
9bool checkInputFile(ifstream &input) { //checking if the file is found and opened or not.
10
11 if (!input) {
12 return 0; //returning 'false'.
13 }
14 else {
15 cout << "Input file has found !" << endl; //if the target file has been opened , prints a success message.
16 return 1; //returning 'true'.
17 }
18}
19
20
21bool isEmpty(string s) {
22
23 if (s.size() == NULL) { //if there is no element in the given file , information message will be printed and function will return 'true'.
24 cout << "Input file is empty." << endl;
25 return true;
26 }
27 else {
28 cout << "\nContent of the input file : " << s; //if file isn't empty , information about the file will be printed and function will return 'false'.
29 return false;
30 }
31}
32
1#include<bits/stdc++.h>
2using namespace std;
3int main()
4{
5 int T;
6 cin>>T;
7 for(int i=0;i<T;i++)
8 {
9 int A,B,C,D,E;
10 cin>>A>>B>>C>>D>>E;
11 if(A+B+C>D+E)
12 cout<<"NO\n";
13 else
14 {
15 if(min(min(A,B),C)<=E)
16 cout<<"YES\n";
17 }
18 }
19 return 0;
20}
1 cout<<"Enter a string to generate a password from it "<<endl;
2 cin>>password;
3 cout<<endl;
1#include<bits/stdc++.h>
2using namespace std;
3int main()
4{
5 int T;
6 cin>>T;
7 for(int i=0;i<T;i++)
8 {
9 int A,B,C,D,E;
10 cin>>A>>B>>C>>D>>E;
11 if(A+B+C>D+E)
12 cout<<"NO\n";
13 else
14 {
15 if(min(min(A,B),C)<=E)
16 cout<<"YES\n";
17 }
18 }
19 return 0;
20}
1public static LinkedList fnA(int[] arrayA, int[] arrayB) {
2LinkedList<Integer> result = new LinkedList<Integer>();
3for (int i=0; i<arrayA.length; i++) {
4if (!binarySearch(arrayB, arrayA[i]))
5result.add(arrayA[i]);
6}
7for (int i=0; i<arrayB.length; i++) {
8if (!binarySearch(arrayA, arrayB[i]))
9result.add(arrayB[i]);
10}
11return result;
12}
13