File tree Expand file tree Collapse file tree 3 files changed +12
-22
lines changed Expand file tree Collapse file tree 3 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 1010 * Platform : N/A
1111 *
1212 */
13-
14- /* The Main Class */
1513public class A {
1614
1715 private InputStream inputStream ;
Original file line number Diff line number Diff line change 1010 *
1111 */
1212
13- /* The Main Class */
1413 class A {
1514
1615 private InputStream inputStream ;
1716 private OutputStream outputStream ;
1817 private FastReader in ;
19- private PrintWriter out ;
18+ private PrintWriter out ;
2019 /*
2120 Overhead [Additional Temporary Strorage] but provides memory reusibility for multiple test cases.
2221
Original file line number Diff line number Diff line change @@ -37,32 +37,25 @@ public Solution(boolean stdIO)throws FileNotFoundException{
3737 in = new FastReader (inputStream );
3838 out = new PrintWriter (outputStream );
3939 }
40+
4041 final int MAXN = (int )1e3 + 1 ;
41- int [][]mat = new int [MAXN ][MAXN ];
42-
42+ int [][]matrix = new int [MAXN ][MAXN ];
43+
4344 void run ()throws Exception {
4445 int tests = i ();
45- for (int t = 1 ; t <= tests ; t ++){
46+ for (int testCase = 1 ; testCase <= tests ; testCase ++){
47+ out .write ("Case #" +testCase +": " );
4648 int n = i ();
47- String s = s ();
49+ // solve cool things here
50+
51+ long ans = 0L ;
4852
49- out .write ("Case #" +t +": " );
50- for (int i = 1 ; i <= s .length (); i ++){
51- if (s .charAt (i - 1 ) == 'S' )out .write ("E" );
52- else out .write ("S" );
53- }
54- out .write ("\n " );
53+ out .write ("" +ans +"\n " );
5554 }
5655 }
57- boolean isContain4 (String a ){
58- String key = "" +a ;
59- for (int pos = 1 ; pos <= key .length (); pos ++){
60- if (key .charAt (pos - 1 )=='4' )return true ;
61- }
62- return false ;
63- }
64- void clear (){
6556
57+ void clear (){
58+ // Todo: implementation of clearing the shared memory for each test case
6659 }
6760
6861 long gcd (long a , long b ){
You can’t perform that action at this time.
0 commit comments