結果

問題 No.851 テストケース
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 13:27:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 568 bytes
コンパイル時間 3,640 ms
コンパイル使用メモリ 75,788 KB
実行使用メモリ 54,172 KB
最終ジャッジ日時 2024-05-01 04:42:57
合計ジャッジ時間 6,946 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
53,568 KB
testcase_01 AC 116 ms
54,076 KB
testcase_02 WA -
testcase_03 AC 115 ms
53,872 KB
testcase_04 AC 102 ms
53,116 KB
testcase_05 AC 114 ms
53,876 KB
testcase_06 AC 103 ms
53,076 KB
testcase_07 AC 104 ms
52,956 KB
testcase_08 AC 115 ms
52,800 KB
testcase_09 AC 107 ms
53,060 KB
testcase_10 AC 111 ms
53,856 KB
testcase_11 AC 103 ms
53,048 KB
testcase_12 AC 107 ms
53,188 KB
testcase_13 AC 115 ms
54,172 KB
testcase_14 AC 116 ms
52,964 KB
testcase_15 AC 111 ms
52,960 KB
testcase_16 AC 104 ms
53,044 KB
testcase_17 AC 104 ms
53,224 KB
testcase_18 AC 113 ms
53,988 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 101 ms
53,128 KB
testcase_22 AC 113 ms
53,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package con_level_1half;
import java.util.Scanner;
import java.util.TreeSet;
public class Con851 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		s.nextLine();
		String str = s.nextLine();
		Long A1 = 0l,A2 = 0l,A3 = 0l;
		if(str.contains(" ")){
			System.out.println("assert");
		}else{
			A1 = Long.parseLong(str);
			A2 = s.nextLong();
			A3 = s.nextLong();

			TreeSet<Long> ts = new TreeSet();
			ts.add(A1+A2);
			ts.add(A1+A3);
			ts.add(A2+A3);
			ts.pollLast();

			System.out.println(ts.pollLast());
		}
		s.close();
	}

}
0