結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-28 15:25:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 1,965 ms |
| コンパイル使用メモリ | 193,228 KB |
| 最終ジャッジ日時 | 2025-01-11 13:21:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0),ios::sync_with_stdio(false);
string s; cin>>s;
int diff='a'-'A';
for(auto&&i:s){
cout<<(i>='a'&&i<='z'?(char)(i-diff):(char)(i+diff));
}
cout<<"\n"s;
}