結果
問題 | No.857 素振り |
ユーザー | GodNegoto |
提出日時 | 2019-11-07 15:39:46 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 438 bytes |
コンパイル時間 | 3,370 ms |
コンパイル使用メモリ | 72,596 KB |
実行使用メモリ | 39,984 KB |
最終ジャッジ日時 | 2023-10-13 03:01:29 |
合計ジャッジ時間 | 5,410 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 119 ms
39,536 KB |
testcase_01 | AC | 117 ms
39,264 KB |
testcase_02 | AC | 122 ms
39,448 KB |
testcase_03 | AC | 118 ms
39,488 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
package algo; import java.util.Scanner; //import algo.*; public class sample7 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int cnt = 0; for(int i=1; i <= Z; i++) { if(i == X) { } else if (i == Y) { } else { cnt++; } } System.out.println(cnt); } }