結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
fukusei
|
| 提出日時 | 2017-05-27 12:19:54 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 5,000 ms |
| + 415µs | |
| コード長 | 482 bytes |
| 記録 | |
| コンパイル時間 | 1,823 ms |
| コンパイル使用メモリ | 84,048 KB |
| 実行使用メモリ | 45,640 KB |
| 最終ジャッジ日時 | 2026-09-01 16:42:49 |
| 合計ジャッジ時間 | 4,411 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import java.util.*;
class test{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String str = sc.next();
String c[] = new String [str.length()];
for(int i=0; i<c.length; i++){
if(str.substring(i, i+1).toUpperCase().equals( str.substring(i, i+1) ) ){
c[i] = str.substring(i, i+1).toLowerCase();
}
else{
c[i] = str.substring(i, i+1).toUpperCase();
}
}
for(int i=0; i<c.length; i++){
System.out.print(c[i]);
}
}
}
fukusei