結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
GodNegoto
|
| 提出日時 | 2019-11-07 15:39:46 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 438 bytes |
| コンパイル時間 | 5,656 ms |
| コンパイル使用メモリ | 74,068 KB |
| 実行使用メモリ | 41,404 KB |
| 最終ジャッジ日時 | 2024-09-15 00:41:36 |
| 合計ジャッジ時間 | 7,773 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 RE * 6 |
ソースコード
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);
int X = sc.nextInt();
int Y = sc.nextInt();
int Z = sc.nextInt();
int cnt = 0;
for(int i=1; i <= Z; i++) {
if(i == X) {
}
else if (i == Y) {
}
else {
cnt++;
}
}
System.out.println(cnt);
}
}
GodNegoto