그래도 시간이 절반은...
import java.io.FileInputStream;
import java.util.Scanner;
public class 단순2진암호코드 {
public static void main(String[] args) throws Exception {
System.setIn(new FileInputStream("단순2진암호코드_input.txt"));
Scanner sc = new Scanner(System.in);
int T;
T=sc.nextInt();
String[] code = new String[T];
for(int tc=1; tc<=T; tc++) {
int N = sc.nextInt();
int M = sc.nextInt();
sc.nextLine();
String[] card = new String[N];
for(int i=0; i 0) {
code[tc-1] = card[i].substring(end-55, end+1);
// return;
// System.out.println(code[tc-1]);
// System.out.println(code[tc].length());
}
}
// System.out.println(code[tc-1]);
int[] number = new int[8];
int index = 0;
for(int i=0; i
데이터파일
2
16 80
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000011101101100010111011011000101100010001101001001101110110000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
11 70
00000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000001100101000110100011010111101101110010011001001101110110000000000
00000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000
|