結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
|
提出日時 | 2017-03-01 21:24:43 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 865 ms |
コンパイル使用メモリ | 93,460 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 07:08:08 |
合計ジャッジ時間 | 1,702 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import std.stdio; import std.string, std.conv, std.array, std.algorithm; import std.uni; void main(){ auto S = readln.chomp; string ans = ""; foreach(c;S){ if(c.isUpper) ans ~= c.toLower; else ans ~= c.toUpper; } ans.writeln; }