結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-21 21:02:05 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 465 bytes |
| コンパイル時間 | 2,072 ms |
| コンパイル使用メモリ | 77,384 KB |
| 実行使用メモリ | 56,432 KB |
| 最終ジャッジ日時 | 2024-09-19 03:07:36 |
| 合計ジャッジ時間 | 4,114 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
int rest01 = sc.nextInt();
int rest02 = sc.nextInt();
int num = sc.nextInt();
int res = 0;
int cnt = 1;
while (cnt <= num) {
if (cnt != rest01 && cnt != rest02) {
res++;
}
cnt++;
}
System.out.print(res);
}
}