結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-08-31 15:32:42 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 1,000 ms |
| コード長 | 393 bytes |
| 記録 | |
| コンパイル時間 | 1,748 ms |
| コンパイル使用メモリ | 81,700 KB |
| 実行使用メモリ | 41,600 KB |
| 最終ジャッジ日時 | 2026-05-11 03:58:15 |
| 合計ジャッジ時間 | 3,278 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long y = sc.nextLong();
long z = sc.nextLong();
long ans;
if (y <= z) {
ans = z - 2;
} else if (x <= z) {
ans = z - 1;
} else {
ans = z;
}
System.out.println(ans);
}
}
tenten