結果
問題 | No.857 素振り |
ユーザー | DaiKi117 |
提出日時 | 2019-10-09 14:01:23 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 2,169 ms |
コンパイル使用メモリ | 74,192 KB |
実行使用メモリ | 41,640 KB |
最終ジャッジ日時 | 2024-04-28 06:14:03 |
合計ジャッジ時間 | 4,261 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 133 ms
41,316 KB |
testcase_01 | AC | 133 ms
41,120 KB |
testcase_02 | AC | 131 ms
41,196 KB |
testcase_03 | AC | 132 ms
41,244 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
import java.util.*; public class Main{ public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int z = scanner.nextInt(); int ans = z; if(z >= x){ ans -= 1; } if(z >= y){ ans -= 1; } System.out.println(ans); } }