結果

問題 No.163 cAPSlOCK
ユーザー varrho
提出日時 2019-09-13 23:56:02
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 3,575 ms
コンパイル使用メモリ 65,844 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 10:39:39
合計ジャッジ時間 3,988 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils
var
    s: string = stdin.readline
    t: string = s.toLower
    ans: string = ""
for i in 0..<s.len:
    if s[i] == t[i]:
        ans.add(t[i].toUpperAscii)
    else:
        ans.add(t[i])
echo ans
0