This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<bits/stdc++.h> | |
| #define ll long long | |
| #define ld long double | |
| using namespace std; | |
| main() | |
| { | |
| ios_base::sync_with_stdio(false); | |
| cin.tie(NULL); | |
| int t; | |
| cin>>t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map<int,bool>mark; | |
| for(int i=0;i<n;i++) | |
| { | |
| for(int j=0;j<m;j++) | |
| { | |
| if(abs(a[i]-b[j])<=1) | |
| { | |
| if(!mark[j] ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Author: Hamza Hasbi | |
| Date: 08-Jun-16 4:23:54 PM | |
| */ | |
| #include<bits/stdc++.h> | |
| #define ll long long | |
| #define ld long double | |
| using namespace std; | |
| main() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| // Reads JSON from stdin and writes equivalent | |
| // nicely-formatted JSON to stdout. | |
| var stdin = process.stdin, | |
| stdout = process.stdout, | |
| inputChunks = []; | |
| stdin.resume(); |