結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
bambam
|
| 提出日時 | 2019-08-22 10:15:46 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 1,000 ms |
| コード長 | 356 bytes |
| コンパイル時間 | 2,257 ms |
| コンパイル使用メモリ | 74,008 KB |
| 実行使用メモリ | 54,332 KB |
| 最終ジャッジ日時 | 2024-10-12 01:00:34 |
| 合計ジャッジ時間 | 4,228 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
long x = sc.nextLong();
long y = sc.nextLong();
long z = sc.nextLong();
long ans = z;
if (z >= y) {
ans--;
}
if (z >= x) {
ans--;
}
System.out.println(ans);
}
}
bambam