結果
| 問題 |
No.383 レーティング
|
| コンテスト | |
| ユーザー |
cande398
|
| 提出日時 | 2017-10-09 22:22:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 143 ms / 2,000 ms |
| コード長 | 255 bytes |
| コンパイル時間 | 2,367 ms |
| コンパイル使用メモリ | 75,024 KB |
| 実行使用メモリ | 54,312 KB |
| 最終ジャッジ日時 | 2024-11-17 07:05:55 |
| 合計ジャッジ時間 | 5,007 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int ans = 0-sc.nextInt()+sc.nextInt();
if(ans == 0)System.out.println("0");
else System.out.printf("%+d\n", ans);
}
}
cande398