This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Fast I/O macros for competitive programming | |
| /// These macros provide efficient input/output operations optimized for competitive programming | |
| /// 백준 OJ 러스트 사용자들을 위한 간편한 빠른 입출력 매크로 | |
| /// Reads a single line from stdin | |
| /// # Examples | |
| /// ``` | |
| /// let line = read!(); // reads a line as String | |
| /// let num = read!(i32); // reads and parses a single number | |
| /// let (a, b) = read!(i32, i32); // reads two numbers into a tuple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const userAgent = navigator.userAgent.toLowerCase() | |
| if (/kakaotalk/.test(userAgent)) { | |
| location.href = | |
| 'kakaotalk://web/openExternal?url=' + encodeURIComponent(location.href) | |
| setTimeout(() => { | |
| location.href = /ipad|iphone|ipod/.test(userAgent) | |
| ? 'kakaoweb://closeBrowser' | |
| : 'kakaotalk://inappbrowser/close' | |
| }) |