AtCoder Beginner Contest 004

Submission #3727668

Source codeソースコード

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int[] num = new int[6];
    for(int i = 0; i < 6; i++){
      num[i] = i + 1;
    }
    for(int j = 0; j < N%30; j++){
        int tmp = num[j];
        num[j] = num[j+1];
        num[j+1] = tmp;
    }
    for(int j = 0; j < 6; j++){
      System.out.print(num[j]);
    }
  }
}

Submission

Task問題 C - 入れ替え
User nameユーザ名 ff_kt
Created time投稿日時
Language言語 Java8 (OpenJDK 1.8.0)
Status状態 RE
Score得点 0
Source lengthソースコード長 464 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
Subtask1 0 / 30 SubTask1/00_sample_00.txt,SubTask1/00_sample_01.txt,SubTask1/00_sample_02.txt,SubTask1/rand_19.txt,SubTask1/rand_2.txt,SubTask1/rand_25.txt,SubTask1/rand_27.txt,SubTask1/rand_33.txt,SubTask1/rand_35.txt,SubTask1/rand_4.txt,SubTask1/rand_44.txt,SubTask1/rand_48.txt,SubTask1/rand_8.txt
Subtask2 0 / 70 SubTask2/00_sample_03.txt,SubTask2/max_case.txt,SubTask2/rand_120009641.txt,SubTask2/rand_134230520.txt,SubTask2/rand_136939465.txt,SubTask2/rand_200732473.txt,SubTask2/rand_211796835.txt,SubTask2/rand_312330341.txt,SubTask2/rand_377341731.txt,SubTask2/rand_384611280.txt,SubTask2/rand_386098102.txt,SubTask2/rand_399010727.txt,SubTask2/rand_409627453.txt,SubTask2/rand_416537730.txt,SubTask2/rand_425486442.txt,SubTask2/rand_493135174.txt,SubTask2/rand_573105326.txt,SubTask2/rand_62794810.txt,SubTask2/rand_649471654.txt,SubTask2/rand_693017484.txt,SubTask2/rand_729197057.txt,SubTask2/rand_759630883.txt,SubTask2/rand_823752210.txt,SubTask2/rand_830399384.txt,SubTask2/rand_893242387.txt,SubTask2/rand_935005824.txt,SubTask2/rand_989703310.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
SubTask1/00_sample_00.txt AC 95 ms 21204 KB
SubTask1/00_sample_01.txt AC 95 ms 18768 KB
SubTask1/00_sample_02.txt RE
SubTask1/rand_19.txt RE
SubTask1/rand_2.txt AC 94 ms 18900 KB
SubTask1/rand_25.txt RE
SubTask1/rand_27.txt RE
SubTask1/rand_33.txt AC 97 ms 19540 KB
SubTask1/rand_35.txt AC 96 ms 18640 KB
SubTask1/rand_4.txt AC 95 ms 19796 KB
SubTask1/rand_44.txt RE
SubTask1/rand_48.txt RE
SubTask1/rand_8.txt RE
SubTask2/00_sample_03.txt RE
SubTask2/max_case.txt RE
SubTask2/rand_120009641.txt RE
SubTask2/rand_134230520.txt RE
SubTask2/rand_136939465.txt RE
SubTask2/rand_200732473.txt RE
SubTask2/rand_211796835.txt RE
SubTask2/rand_312330341.txt RE
SubTask2/rand_377341731.txt RE
SubTask2/rand_384611280.txt AC 96 ms 18644 KB
SubTask2/rand_386098102.txt RE
SubTask2/rand_399010727.txt RE
SubTask2/rand_409627453.txt RE
SubTask2/rand_416537730.txt AC 97 ms 20692 KB
SubTask2/rand_425486442.txt RE
SubTask2/rand_493135174.txt AC 97 ms 21076 KB
SubTask2/rand_573105326.txt RE
SubTask2/rand_62794810.txt RE
SubTask2/rand_649471654.txt AC 96 ms 18644 KB
SubTask2/rand_693017484.txt RE
SubTask2/rand_729197057.txt RE
SubTask2/rand_759630883.txt RE
SubTask2/rand_823752210.txt AC 96 ms 20560 KB
SubTask2/rand_830399384.txt RE
SubTask2/rand_893242387.txt RE
SubTask2/rand_935005824.txt RE
SubTask2/rand_989703310.txt RE