結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-10 22:56:50 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 10,571 ms |
| コンパイル使用メモリ | 172,928 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-02 22:24:50 |
| 合計ジャッジ時間 | 11,626 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.10.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
module Main where
import Control.Applicative
import Control.Monad
import Data.Char
convert :: Char -> Char
convert c
| isUpper c = toLower c
| otherwise = toUpper c
main :: IO ()
main = do
pwd <- getLine
putStrLn $ fmap convert pwd