This file contains 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
import java.util.*; | |
import java.io.*; | |
public class Main { | |
final static String FNAME = "A-large"; //input file name | |
public Scanner in; | |
public PrintWriter out; | |
void open() throws IOException { | |
in = new Scanner( new File( FNAME + ".in" ) ) ; | |
out = new PrintWriter( new File( FNAME + ".out" ) ); |
This file contains 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 needed headers here */ | |
using namespace std; | |
typedef map<char, bool> pmap; | |
void main() | |
{ | |
int T; | |
//freopen("C:\\input1.txt","r",stdin); | |
//freopen("C:\\outp.txt","w",stdout); | |
cin >> T; | |
for (int kk = 0; kk < T; kk++) { |
This file contains 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 needed headers here*/ | |
using namespace std; | |
typedef map<char, int> pmap; | |
typedef map<int, char> vmap; | |
void main() | |
{ | |
int T; //test cases | |
//freopen("C:\\input.txt","r",stdin); | |
//freopen("C:\\ouput.out","w",stdout); | |
cin >> T; |
This file contains 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
/* | |
This file contains codes mostly developed by Dr.Ken Christensen. Email: christen@csee.usf.edu | |
http://www.csee.usf.edu/~christen/tools/toolpage.html | |
class : Computer Networks | |
*/ | |
/* Code is readable and therefore comments are added when absolutely needed */ | |
/* Header Files for time, sockets, IO and String */ |
NewerOlder