結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-21 21:06:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 470 bytes |
| コンパイル時間 | 2,045 ms |
| コンパイル使用メモリ | 74,328 KB |
| 実行使用メモリ | 56,044 KB |
| 最終ジャッジ日時 | 2024-09-19 03:07:40 |
| 合計ジャッジ時間 | 4,082 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 RE * 6 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long rest01 = sc.nextInt();
long rest02 = sc.nextInt();
long num = sc.nextInt();
long res = 0;
long cnt = 1;
while (cnt <= num) {
if (cnt != rest01 && cnt != rest02) {
res++;
}
cnt++;
}
System.out.print(res);
}
}