ACM (TJU) : 3004


package volume_XXI;

import java.util.Scanner;

public class Id_3004 {

/**
* @param args
*/
public static void main(String[] args) {

Scanner input = new Scanner (System.in);

int dataSet = input.nextInt();
int testCase = 0;

while ( dataSet– > 0 ) {

int m = input.nextInt();
String s = input.next();

System.out.print (++testCase + ” “);

for ( int i = 0; i < s.length(); i++ ) { if ( i + 1 == m ) continue; System.out.print(s.charAt(i)); } System.out.println (); } } } [/sourcecode]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s