結果

問題 No.3017 エスパー
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-12-02 17:32:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 71,596 KB
実行使用メモリ 56,148 KB
最終ジャッジ日時 2023-08-18 12:20:35
合計ジャッジ時間 6,072 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,992 KB
testcase_01 AC 122 ms
56,028 KB
testcase_02 AC 123 ms
55,844 KB
testcase_03 AC 121 ms
55,628 KB
testcase_04 AC 124 ms
55,768 KB
testcase_05 AC 121 ms
55,988 KB
testcase_06 AC 120 ms
55,492 KB
testcase_07 AC 120 ms
55,756 KB
testcase_08 AC 121 ms
55,836 KB
testcase_09 AC 125 ms
55,964 KB
testcase_10 AC 124 ms
56,044 KB
testcase_11 AC 123 ms
56,148 KB
testcase_12 AC 122 ms
54,044 KB
testcase_13 AC 122 ms
55,756 KB
testcase_14 AC 122 ms
55,588 KB
testcase_15 AC 123 ms
55,852 KB
testcase_16 AC 121 ms
55,856 KB
testcase_17 AC 121 ms
55,808 KB
testcase_18 AC 121 ms
55,688 KB
testcase_19 AC 121 ms
55,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int K = sc.nextInt();
        int ans =S%K;
        System.out.println(ans);
    }
}
0