結果

問題 No.692 square1001 and Permutation 1
ユーザー TksiTksi
提出日時 2018-11-05 23:49:00
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 7,076 KB
実行使用メモリ 40,692 KB
最終ジャッジ日時 2024-04-21 02:23:11
合計ジャッジ時間 1,060 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
38,656 KB
testcase_01 AC 61 ms
39,040 KB
testcase_02 AC 61 ms
38,528 KB
testcase_03 AC 59 ms
40,692 KB
testcase_04 WA -
testcase_05 AC 59 ms
38,528 KB
testcase_06 AC 60 ms
38,656 KB
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

let input = require('fs').readFileSync('/dev/stdin', 'utf8');
const N = Number(input);
if(N < 3) console.log(N % 2 ? 'square1001' : 'Petr');
else console.log(N % 2 ? 'Petr' : 'square1001');
0