結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
OGNM
|
| 提出日時 | 2016-11-12 23:25:33 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 416 bytes |
| コンパイル時間 | 2,892 ms |
| コンパイル使用メモリ | 74,388 KB |
| 実行使用メモリ | 42,780 KB |
| 最終ジャッジ日時 | 2024-11-25 21:41:30 |
| 合計ジャッジ時間 | 7,267 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 1 |
ソースコード
import java.util.*;
public class Study_01 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int index = s.indexOf("ccw");
int sL = s.length();
int last = sL - index - 3;
if(index > last){
System.out.println(last + 1);
}else if(last > index){
System.out.println(index + 1);
}
}
}
OGNM