Submission #76034594


Source Code Expand

import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt();
        final String inputStr="HelloWorld";
        int length=inputStr.length();
        String newString=inputStr.substring(0,x-1)+inputStr.substring(x,length);
        System.out.println(newString);
    }
}

Submission Info

Submission Time
Task A - Hell, World!
User renu_
Language Java24 (OpenJDK 24.0.2)
Score 100
Code Size 368 Byte
Status AC
Exec Time 71 ms
Memory 40484 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 71 ms 39920 KiB
00_sample_01.txt AC 66 ms 40160 KiB
00_sample_02.txt AC 65 ms 40484 KiB
01_handmade_00.txt AC 65 ms 40020 KiB
01_handmade_01.txt AC 65 ms 40188 KiB
01_handmade_02.txt AC 63 ms 39772 KiB
01_handmade_03.txt AC 62 ms 39860 KiB
01_handmade_04.txt AC 63 ms 40452 KiB
01_handmade_05.txt AC 64 ms 40068 KiB
01_handmade_06.txt AC 64 ms 40148 KiB