結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-30 13:28:30 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 596 bytes |
| コンパイル時間 | 3,625 ms |
| コンパイル使用メモリ | 75,412 KB |
| 実行使用メモリ | 54,408 KB |
| 最終ジャッジ日時 | 2024-11-21 05:50:41 |
| 合計ジャッジ時間 | 7,543 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 18 WA * 2 |
ソースコード
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);
if(ts.size() > 1){
ts.pollLast();
}
System.out.println(ts.pollLast());
}
s.close();
}
}