結果
問題 | No.857 素振り |
ユーザー |
![]() |
提出日時 | 2021-02-15 17:20:45 |
言語 | TypeScript (5.7.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 7,961 ms |
コンパイル使用メモリ | 230,116 KB |
実行使用メモリ | 39,552 KB |
最終ジャッジ日時 | 2024-12-31 16:26:16 |
合計ジャッジ時間 | 9,199 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 3 WA * 5 |
ソースコード
import * as fs from 'fs';const input = fs.readFileSync('/dev/stdin', 'utf8');const arr = input.split(/[ \n]/);let X = parseInt(arr[0]);let Y = parseInt(arr[1]);let Z = parseInt(arr[2]);if (Y <= Z) {console.log(Z - 2);} else if (X <= Z && Z < Y) {console.log(Z - 1);} else if (Z < X) {console.log(Z);}