結果

問題 No.2184 A○B問題
ユーザー Maeda
提出日時 2025-09-09 18:00:38
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 496 bytes
コンパイル時間 2,032 ms
コンパイル使用メモリ 76,512 KB
実行使用メモリ 46,728 KB
最終ジャッジ日時 2025-09-09 18:00:46
合計ジャッジ時間 6,126 ms
ジャッジサーバーID
(参考情報)
judge / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String textA = scan.nextLine();
        String textB = scan.nextLine();
        if(Objects.equals(textA,textB)){
        	System.out.println("1 2 3 4 5");
        }else{
        	if(Objects.equals(textA,"1 2 3 4 5")){
        		System.out.println(textB);
        	}else{
        		System.out.println(textA);
        	}
        }
    }
}
0