結果

問題 No.495 (^^*) Easy
ユーザー yun_app
提出日時 2017-03-28 18:31:48
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 41,344 KB
最終ジャッジ日時 2024-10-13 00:06:25
合計ジャッジ時間 972 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
function main(chunk){
    // your code goes here
    
    console.log((chunk.match(/\(\^\^\*\)/g)?chunk.match(/\(\^\^\*\)/g).length:0)
    + " " + (chunk.match(/\(\*\^\^\)/g)?chunk.match(/\(\*\^\^\)/g).length:0));
}
0