結果
問題 | No.2014 Eggs Hatching |
ユーザー |
|
提出日時 | 2022-09-20 09:32:34 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 2,488 ms |
コンパイル使用メモリ | 74,620 KB |
実行使用メモリ | 41,460 KB |
最終ジャッジ日時 | 2024-12-22 03:22:11 |
合計ジャッジ時間 | 5,962 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 4 |
ソースコード
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int n = sc.nextInt();int n2 = sc.nextInt();int n3 = sc.nextInt();if (n <= n2 || n <= n3){System.out.println(n);}else if(n2 <= n3){System.out.println(n2);}else {System.out.println(n3);}}}