結果

問題 No.857 素振り
ユーザー GodNegotoGodNegoto
提出日時 2019-11-07 16:14:45
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 446 bytes
コンパイル時間 3,350 ms
コンパイル使用メモリ 72,192 KB
実行使用メモリ 59,944 KB
最終ジャッジ日時 2023-10-13 03:01:49
合計ジャッジ時間 6,510 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
44,328 KB
testcase_01 AC 122 ms
39,152 KB
testcase_02 AC 117 ms
39,352 KB
testcase_03 AC 117 ms
39,852 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
		long X = sc.nextLong();
		long Y = sc.nextLong();
		long Z = sc.nextLong();
		long cnt = 0;
		for(long i=1; i <= Z; i++) {
			if(i == X) {
				
			}
			else if (i == Y) {
				
			}
			else {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}
0