結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2015-11-06 22:38:25 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 479 ms |
コンパイル使用メモリ | 61,516 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 13:19:36 |
合計ジャッジ時間 | 1,281 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<iostream> #include<cmath> #include<string> #include<algorithm> using namespace std; int main(){ string s; cin >> s; for(int i=0;i<s.length();i++){ if(s[i]>'`')s[i]-=32; else s[i]+=32; } cout << s << endl; }