結果
| 問題 |
No.3019 YNeos
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-02-11 02:42:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 578 bytes |
| コンパイル時間 | 7,554 ms |
| コンパイル使用メモリ | 84,948 KB |
| 実行使用メモリ | 54,520 KB |
| 最終ジャッジ日時 | 2025-02-11 02:42:40 |
| 合計ジャッジ時間 | 14,105 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 18 RE * 23 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String X = sc.next();
String Y = sc.next();
int diff = X.length() - Y.length();
if (0 <= diff || diff <= 1) {
char[] S = new char[X.length() + Y.length()];
for (int i = 0; i < X.length(); i++) {
S[2 * i] = X.charAt(i);
}
for (int i = 0; i < Y.length(); i++) {
S[2 * i + 1] = Y.charAt(i);
}
for (char s: S) {
System.out.print(s);
}
System.out.println();
} else {
System.out.println("?");
}
}
}