結果

問題 No.337 P versus NP
ユーザー ToniTakekawaToniTakekawa
提出日時 2016-02-07 19:24:11
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 983 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 9,652 ms
コンパイル使用メモリ 243,076 KB
実行使用メモリ 63,324 KB
最終ジャッジ日時 2023-09-11 23:19:46
合計ジャッジ時間 32,007 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 948 ms
62,944 KB
testcase_01 AC 934 ms
62,812 KB
testcase_02 AC 933 ms
63,324 KB
testcase_03 AC 935 ms
62,896 KB
testcase_04 AC 927 ms
62,796 KB
testcase_05 AC 919 ms
63,096 KB
testcase_06 AC 941 ms
62,936 KB
testcase_07 AC 983 ms
62,784 KB
testcase_08 AC 949 ms
62,828 KB
testcase_09 AC 932 ms
63,016 KB
testcase_10 AC 922 ms
62,920 KB
testcase_11 AC 941 ms
62,928 KB
testcase_12 AC 934 ms
62,964 KB
testcase_13 AC 931 ms
62,988 KB
testcase_14 AC 951 ms
62,896 KB
testcase_15 AC 961 ms
62,856 KB
testcase_16 AC 939 ms
63,168 KB
testcase_17 AC 941 ms
63,100 KB
testcase_18 AC 935 ms
62,832 KB
testcase_19 AC 918 ms
62,816 KB
testcase_20 AC 931 ms
62,872 KB
testcase_21 AC 933 ms
63,004 KB
testcase_22 AC 955 ms
63,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object LazySieve extends App {
  val sc = new Scanner(System.in)
  val N, P = sc.nextInt
  val NP = N * P
  if( P == NP ){
    println("=")
  }
  else{
    println("!=")
  }
}
0