Submission #51043588
Source Code Expand
import java.io.*;
import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
//String str = scan.next();
//int a = scan.nextInt();
String str = scan.next();
String temp="";
boolean check = true;
for(int i=0;i<str.length();i++){
temp = str.substring(i,i+1);
if(temp.equals("|")){
check = !check;
continue;
}
if(check)System.out.print(temp);
}
System.out.println("");
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Spoiler |
| User | ikematsu |
| Language | Java (OpenJDK 17) |
| Score | 150 |
| Code Size | 551 Byte |
| Status | AC |
| Exec Time | 70 ms |
| Memory | 38148 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 150 / 150 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 68 ms | 37980 KiB |
| random_02.txt | AC | 66 ms | 37740 KiB |
| random_03.txt | AC | 68 ms | 37688 KiB |
| random_04.txt | AC | 68 ms | 37776 KiB |
| random_05.txt | AC | 70 ms | 37800 KiB |
| random_06.txt | AC | 68 ms | 38032 KiB |
| random_07.txt | AC | 69 ms | 37720 KiB |
| random_08.txt | AC | 68 ms | 37776 KiB |
| random_09.txt | AC | 70 ms | 37948 KiB |
| random_10.txt | AC | 70 ms | 38148 KiB |
| random_11.txt | AC | 70 ms | 37688 KiB |
| sample_01.txt | AC | 69 ms | 37732 KiB |
| sample_02.txt | AC | 66 ms | 37976 KiB |
| sample_03.txt | AC | 69 ms | 38016 KiB |