結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-21 20:58:40 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 1,831 ms |
| コンパイル使用メモリ | 83,988 KB |
| 実行使用メモリ | 43,496 KB |
| 最終ジャッジ日時 | 2026-08-30 18:00:42 |
| 合計ジャッジ時間 | 2,925 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}