QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#378117 | #7697. Impartial Strings | mbender | Compile Error | / | / | C++14 | 511b | 2024-04-06 04:39:48 | 2024-04-06 04:39:49 |
Judging History
answer
import java.util.Scanner;
public class impartialstrings {
public static void main(String[] args){
Scanner scanner = new Scanner();
String line = scanner.getLine();
int K = Integer.parseInt(k);
while(K-- > 0){
line = scanner.getLine();
String[] arr = line.split(" ");
String A = arr[0];
String S = arr[1];
String T = arr[2];
System.out.println((S.equals(T)) || (A.length() <= 2 && S.charAt(0)!=S.charAt(1) && T.charAt(0)!= T.charAt(1))) ? 1:0);
}
}
}
详细
answer.code:1:1: error: ‘import’ does not name a type 1 | import java.util.Scanner; | ^~~~~~ answer.code:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’ answer.code:3:1: error: expected unqualified-id before ‘public’ 3 | public class impartialstrings { | ^~~~~~