結果

問題 No.163 cAPSlOCK
ユーザー Hirotaka Ohkubo
提出日時 2016-07-15 15:59:13
言語 Haskell
(9.10.1)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 1,795 ms
コンパイル使用メモリ 169,216 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-15 01:11:13
合計ジャッジ時間 2,827 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.Char

main = do
  cs <- getLine
  print $ compute cs

compute cs = map ulcase cs

ulcase c
  | isLower c = toUpper c
  | isUpper c = toLower c
  | True = c
0