run time calculator c 2b 2b

Solutions on MaxInterview for run time calculator c 2b 2b by the best coders in the world

showing results for - "run time calculator c 2b 2b"
Sofia
14 Aug 2020
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
Michela
17 May 2019
1int x  ;
2int d ;
3if(h%x == 0){
4cout<< d ;}
5else
6cout<< x ;
7
Lennard
02 Oct 2020
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}
Matteo
22 Aug 2016
1   cout<<"Enter a string to generate a password from it "<<endl;
2   cin>>password;
3    cout<<endl;
Micaela
22 Jan 2018
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}
Maximilian
14 Mar 2018
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
Magdalena
13 Oct 2020
1print "number between 5-10'