結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2018-09-19 20:31:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 512 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 66,688 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 08:20:26 |
合計ジャッジ時間 | 1,152 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <algorithm> #include <iostream> #include <string> using namespace std; static void setup() { cin.tie(0); ios::sync_with_stdio(false); } static void run() { string s; cin >> s; transform(begin(s), end(s), begin(s), [](char c) { if (c >= 'a' && c <= 'z') { return 'A' + (c - 'a'); } else { return 'a' + (c - 'A'); } }); cout << s << endl; } int main(int argc, char **argv) { setup(); run(); return 0; }