結果

問題 No.1257 変わった平均値
ユーザー 遭難者遭難者
提出日時 2020-10-16 23:15:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 72,444 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-09-28 05:15:46
合計ジャッジ時間 5,835 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
56,284 KB
testcase_01 AC 107 ms
55,932 KB
testcase_02 AC 102 ms
55,976 KB
testcase_03 AC 105 ms
55,956 KB
testcase_04 AC 104 ms
56,124 KB
testcase_05 AC 108 ms
56,260 KB
testcase_06 AC 105 ms
55,452 KB
testcase_07 AC 106 ms
56,276 KB
testcase_08 AC 102 ms
56,048 KB
testcase_09 AC 106 ms
55,504 KB
testcase_10 AC 104 ms
55,896 KB
testcase_11 AC 103 ms
55,812 KB
testcase_12 AC 106 ms
56,164 KB
testcase_13 AC 106 ms
55,540 KB
testcase_14 AC 105 ms
54,536 KB
testcase_15 AC 104 ms
56,100 KB
testcase_16 AC 103 ms
55,792 KB
testcase_17 AC 101 ms
56,160 KB
testcase_18 AC 104 ms
55,860 KB
testcase_19 AC 103 ms
55,664 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int[][] a = new int[2][3];
		for(int i = 0 ; i < 2 ; i++){
			for(int j = 0 ; j < 3 ; j++){
				a[i][j] = Integer.parseInt(sc.next());
			}
			Arrays.sort(a[i]);
		}
		boolean q = true;
		for(int i = 0 ; i < 3 && q ; i++){
			if(a[0][i] != a[1][i]) q = false;
		}
		if(q) ou.println("Yes");
		else ou.println("No");
		ou.flush();
		sc.close();
	}
}
0