結果

問題 No.1257 変わった平均値
ユーザー ks2mks2m
提出日時 2020-10-16 21:32:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 2,337 ms
コンパイル使用メモリ 72,700 KB
実行使用メモリ 56,480 KB
最終ジャッジ日時 2023-09-28 02:36:32
合計ジャッジ時間 6,244 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,112 KB
testcase_01 AC 114 ms
56,388 KB
testcase_02 AC 115 ms
53,744 KB
testcase_03 AC 112 ms
55,928 KB
testcase_04 AC 112 ms
56,164 KB
testcase_05 AC 115 ms
56,076 KB
testcase_06 AC 114 ms
56,024 KB
testcase_07 AC 114 ms
55,784 KB
testcase_08 AC 112 ms
56,432 KB
testcase_09 AC 111 ms
55,792 KB
testcase_10 AC 112 ms
55,924 KB
testcase_11 AC 114 ms
56,480 KB
testcase_12 AC 117 ms
56,236 KB
testcase_13 AC 114 ms
55,984 KB
testcase_14 AC 113 ms
56,148 KB
testcase_15 AC 114 ms
56,212 KB
testcase_16 AC 113 ms
56,180 KB
testcase_17 AC 113 ms
56,060 KB
testcase_18 AC 119 ms
56,172 KB
testcase_19 AC 115 ms
56,056 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[3];
		int[] d = new int[3];
		for (int i = 0; i < 3; i++) {
			a[i] = sc.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			d[i] = sc.nextInt();
		}
		sc.close();

		Arrays.sort(a);
		Arrays.sort(d);
		for (int i = 0; i < 3; i++) {
			if (a[i] != d[i]) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}
0