結果
問題 | No.337 P versus NP |
ユーザー |
|
提出日時 | 2016-04-01 16:30:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 523 bytes |
コンパイル時間 | 2,039 ms |
コンパイル使用メモリ | 74,484 KB |
実行使用メモリ | 50,324 KB |
最終ジャッジ日時 | 2024-10-02 08:48:51 |
合計ジャッジ時間 | 3,997 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
import java.io.BufferedReader;import java.io.InputStreamReader;public class Main {public static void main(String[] args)throws Exception{BufferedReader br = new BufferedReader(new InputStreamReader(System.in));String line = br.readLine();String[] str = line.split(" ",0);int N = Integer.parseInt(str[0]);int P = Integer.parseInt(str[1]);int NP=N*P;if(P==NP)System.out.println("=");else{System.out.println("!=");}}}