結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2019-08-09 21:21:53 |
| 言語 | Java (openjdk 27.0.1.0.3 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 142 ms / 1,000 ms |
| + 213µs | |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 1,948 ms |
| コンパイル使用メモリ | 92,204 KB |
| 実行使用メモリ | 48,448 KB |
| 最終ジャッジ日時 | 2026-11-27 21:37:23 |
| 合計ジャッジ時間 | 4,996 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long y = sc.nextLong();
long z = sc.nextLong();
sc.close();
long ans = z;
if (x <= z) ans--;
if (y <= z) ans--;
System.out.println(ans);
}
}
ks2m