結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-21 20:58:40 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 1,841 ms |
| コンパイル使用メモリ | 73,892 KB |
| 実行使用メモリ | 41,464 KB |
| 最終ジャッジ日時 | 2024-09-19 03:07:28 |
| 合計ジャッジ時間 | 3,660 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
ソースコード
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 res = 0;
int cnt = 1;
while (cnt <= sc.nextInt()) {
if (cnt != rest01 && cnt != rest02) {
res++;
}
cnt++;
}
System.out.print(res);
}
}