結果
問題 | No.337 P versus NP |
ユーザー |
|
提出日時 | 2016-01-30 01:42:07 |
言語 | Scala(Beta) (3.6.2) |
結果 |
AC
|
実行時間 | 944 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 7,885 ms |
コンパイル使用メモリ | 254,060 KB |
実行使用メモリ | 65,228 KB |
最終ジャッジ日時 | 2024-06-29 12:42:34 |
合計ジャッジ時間 | 31,368 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
/** Reference: http://lizan.asia/blog/2012/12/11/scala-competitive/*/object Main extends App {import java.{util => ju}import scala.annotation._import scala.collection._import scala.collection.{mutable => mu}import scala.collection.JavaConverters._import scala.math._val sc = new ju.Scanner(System.in)val n,p=sc.nextIntprintln(if (p == n * p) "=" else "!=")}