結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2019-08-15 02:38:23 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 410 bytes |
コンパイル時間 | 2,303 ms |
コンパイル使用メモリ | 74,368 KB |
実行使用メモリ | 54,140 KB |
最終ジャッジ日時 | 2024-09-19 14:46:12 |
合計ジャッジ時間 | 4,385 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 RE * 6 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int day = X <= Z ? Z-1 : Z; day = Y <= Z ? day-1 : day; println(day); } public static void print(Object o) { System.out.print(o); } public static void println(Object o) { System.out.println(o); } }