結果
問題 | No.337 P versus NP |
ユーザー | megane_anko |
提出日時 | 2021-02-14 01:45:56 |
言語 | TypeScript (5.4.3) |
結果 |
AC
|
実行時間 | 79 ms / 2,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 8,975 ms |
コンパイル使用メモリ | 253,580 KB |
実行使用メモリ | 42,464 KB |
最終ジャッジ日時 | 2023-09-28 11:22:38 |
合計ジャッジ時間 | 10,877 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
41,952 KB |
testcase_01 | AC | 79 ms
42,028 KB |
testcase_02 | AC | 78 ms
42,024 KB |
testcase_03 | AC | 77 ms
42,028 KB |
testcase_04 | AC | 76 ms
41,980 KB |
testcase_05 | AC | 78 ms
42,464 KB |
testcase_06 | AC | 78 ms
42,052 KB |
testcase_07 | AC | 77 ms
41,840 KB |
testcase_08 | AC | 77 ms
41,896 KB |
testcase_09 | AC | 78 ms
42,056 KB |
testcase_10 | AC | 77 ms
41,992 KB |
testcase_11 | AC | 77 ms
42,012 KB |
testcase_12 | AC | 76 ms
41,856 KB |
testcase_13 | AC | 76 ms
42,108 KB |
testcase_14 | AC | 77 ms
41,852 KB |
testcase_15 | AC | 78 ms
42,020 KB |
testcase_16 | AC | 77 ms
42,300 KB |
testcase_17 | AC | 76 ms
41,980 KB |
testcase_18 | AC | 76 ms
42,072 KB |
testcase_19 | AC | 77 ms
41,988 KB |
testcase_20 | AC | 78 ms
41,844 KB |
testcase_21 | AC | 76 ms
42,436 KB |
testcase_22 | AC | 76 ms
42,072 KB |
ソースコード
import * as fs from 'fs'; const input = fs.readFileSync('/dev/stdin', 'utf8'); const arr = input.split(/[ \n]/); let N = parseInt(arr[0]); let P = parseInt(arr[1]); // if (N === 0 && P === 0) { // console.log("="); // } else if ( N !== 0 && P === 0) { // console.log("="); // } else if (N === 1 && P !== 0) { // console.log("="); // } else if (N === 0 && P !== 0) { // console.log("!="); // } else { // console.log("!="); // } if (P === N * P) { console.log("=") } else { console.log("!=") }