結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2024-03-07 01:46:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 2,121 ms |
コンパイル使用メモリ | 193,064 KB |
最終ジャッジ日時 | 2025-02-20 01:29:42 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin>>s; rep(i,s.size()){ if(islower(s.at(i))){ s.at(i)-=32; cout<<s.at(i); } else{ s.at(i)+=32; cout<<s.at(i); } } cout<<endl; }