結果
| 問題 | No.1469 programing |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-04-09 21:21:45 |
| 言語 | Java (openjdk 23) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 2,191 ms |
| コンパイル使用メモリ | 74,900 KB |
| 実行使用メモリ | 56,368 KB |
| 最終ジャッジ日時 | 2024-06-25 03:53:21 |
| 合計ジャッジ時間 | 15,104 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 TLE * 1 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
char[] s = sc.next().toCharArray();
sc.close();
System.out.print(s[0]);
for (int i = 1; i < s.length; i++) {
if (s[i - 1] != s[i]) {
System.out.print(s[i]);
}
}
System.out.println();
}
}
ks2m