created
last reply
- 4
replies
- 579
views
- 2
users
- 3
links
sorry about that, i am new here.
here’s the code
import java.io.;
import java.util.;
public class Main
{
public static void main(String[] args) throws IOException
{
try{
Scanner in = new Scanner(System.in);
int x = in.nextInt();
System.out.print(x);
int i = x;
while(i>=0){
String str = in.nextLine();
int len = str.length()/2;
int a=0;
while(a<len){
System.out.print(str.charAt(a));
a+=2; }
System.out.println();
i–;
}
}catch(Exception e){
return;
}
}
}
Suggested Topics
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
What are allowed characters in task t9 | ProblemSet Archive | 4 | 240 | Feb 24 |
Help me please! | ProblemSet Archive | 4 | 50 | Jun 30 |
AIBOHPHOBIA - LPS vs Direct Approach | ProblemSet Archive | 1 | 130 | Mar 31 |
ABCPATH - ABC Path | ProblemSet Archive | 1 | 107 | May 11 |
Beangame | ProblemSet Archive | 2 | 144 | Apr 9 |