結果
問題 | No.353 ヘイトプラス |
ユーザー |
|
提出日時 | 2016-04-02 14:31:56 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 55 ms / 1,000 ms |
コード長 | 471 bytes |
コンパイル時間 | 2,082 ms |
コンパイル使用メモリ | 73,824 KB |
実行使用メモリ | 37,120 KB |
最終ジャッジ日時 | 2024-06-29 13:26:42 |
合計ジャッジ時間 | 3,230 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
import java.io.BufferedReader;import java.io.InputStreamReader;public class Main {public static void main(String[] args)throws Exception{BufferedReader br = new BufferedReader(new InputStreamReader(System.in));String line = br.readLine();String[] str = line.split(" ");int a =Integer.parseInt(str[0]);int b =Integer.parseInt(str[1]);a *=-1;int sum = a-b;System.out.println(Math.abs(sum));}}