結果

問題 No.374 コイン
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-05 09:19:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 476 bytes
コンパイル時間 3,054 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 51,224 KB
最終ジャッジ日時 2023-08-07 17:48:53
合計ジャッジ時間 5,532 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,120 KB
testcase_01 AC 41 ms
49,032 KB
testcase_02 AC 40 ms
49,208 KB
testcase_03 AC 40 ms
49,256 KB
testcase_04 AC 42 ms
49,348 KB
testcase_05 AC 41 ms
49,320 KB
testcase_06 AC 41 ms
49,068 KB
testcase_07 AC 41 ms
49,412 KB
testcase_08 AC 40 ms
49,344 KB
testcase_09 AC 41 ms
49,292 KB
testcase_10 AC 42 ms
49,292 KB
testcase_11 AC 41 ms
49,220 KB
testcase_12 AC 40 ms
49,560 KB
testcase_13 AC 40 ms
49,692 KB
testcase_14 AC 41 ms
49,184 KB
testcase_15 AC 41 ms
49,744 KB
testcase_16 AC 40 ms
49,556 KB
testcase_17 AC 40 ms
51,224 KB
testcase_18 AC 39 ms
49,420 KB
testcase_19 AC 39 ms
49,320 KB
testcase_20 AC 41 ms
49,076 KB
testcase_21 AC 41 ms
49,244 KB
testcase_22 AC 41 ms
49,436 KB
testcase_23 AC 41 ms
49,188 KB
testcase_24 AC 42 ms
49,684 KB
testcase_25 AC 41 ms
49,372 KB
testcase_26 AC 42 ms
49,360 KB
testcase_27 AC 42 ms
49,196 KB
testcase_28 AC 40 ms
49,180 KB
testcase_29 AC 41 ms
49,260 KB
testcase_30 AC 39 ms
49,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

public class Exercise60{
  public static void main (String[] args) throws IOException{

    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = new String(in.readLine());

    String[] strArray = str.split(" ");

    long a = Long.parseLong(strArray[0]);
    long b = Long.parseLong(strArray[1]);

    if (b > a){
      System.out.println("K");
    }else{
      System.out.println("S");
    }
  }
}
0