結果
問題 | No.383 レーティング |
ユーザー | yamax3232 |
提出日時 | 2017-02-15 20:10:06 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 4,414 ms |
コンパイル使用メモリ | 72,280 KB |
実行使用メモリ | 56,172 KB |
最終ジャッジ日時 | 2023-08-28 17:26:18 |
合計ジャッジ時間 | 5,297 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 116 ms
55,856 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 118 ms
55,896 KB |
testcase_04 | WA | - |
testcase_05 | AC | 116 ms
55,560 KB |
testcase_06 | AC | 115 ms
55,780 KB |
testcase_07 | AC | 116 ms
55,524 KB |
testcase_08 | WA | - |
testcase_09 | AC | 115 ms
55,588 KB |
testcase_10 | AC | 118 ms
55,820 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
ソースコード
import java.util.Scanner; public class Rating { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner kb=new Scanner(System.in); int a=kb.nextInt(),b=kb.nextInt(); if(a<b){ System.out.print("+"); }else if(a>b){ System.out.print("-"); }else{ System.out.print("0"); } System.out.printf("%d",b-a); kb.close(); } }