結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
|
提出日時 | 2017-02-06 15:18:44 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 96,980 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 06:54:15 |
合計ジャッジ時間 | 1,781 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; import std.uni; void main() { auto s = readln.chomp.to!dstring.dup; foreach (ref c; s) { if (c.isLower) c = c.toUpper; else if (c.isUpper) c = c.toLower; } writeln(s); }