結果

問題 No.48 ロボットの操縦
ユーザー sousakuparksousakupark
提出日時 2023-07-07 17:07:40
言語 TypeScript
(5.7.2)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 8,254 ms
コンパイル使用メモリ 229,232 KB
実行使用メモリ 39,796 KB
最終ジャッジ日時 2024-12-31 17:00:04
合計ジャッジ時間 9,873 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

function test (param1: number, param2: number, param3: number): void {
   let cnt = 0;
   if ( param2 > 0) {
       cnt += 1
   } else if ( param2 < 0 && param1 !==0 ) {
       cnt += 3;
   } else if ( param2 < 0 ) {
       cnt += 2;
   }
   if ( param1 !==0 ) {
       cnt += 2;
   }
   process.stdout.write(String(cnt));
}
0