提出 #784702
ソースコード 拡げる
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main()
{
string str;
cin >> str;
for(int i = 0 ; i < 100;i++)
{
int ans = 0;
if(str[i] == str[i+1])
{
//int ans = 0;
ans += 1;
//cout << str[i] << ans;
}
cout << str[i] << ans ;
}
//cout << str;
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - 高橋くんと文字列圧縮 |
| ユーザ | Yasu4204 |
| 言語 | C++ (G++ 4.6.4) |
| 得点 | 0 |
| コード長 | 345 Byte |
| 結果 | WA |
| 実行時間 | 30 ms |
| メモリ | 1052 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | subtask0_1.txt, subtask0_2.txt, subtask0_3.txt |
| All | 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_1.txt, subtask0_2.txt, subtask0_3.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 0.txt | WA | 29 ms | 924 KiB |
| 1.txt | WA | 29 ms | 876 KiB |
| 10.txt | WA | 30 ms | 1048 KiB |
| 11.txt | WA | 29 ms | 1048 KiB |
| 12.txt | WA | 28 ms | 872 KiB |
| 13.txt | WA | 29 ms | 1052 KiB |
| 14.txt | WA | 27 ms | 880 KiB |
| 15.txt | WA | 27 ms | 944 KiB |
| 16.txt | WA | 27 ms | 940 KiB |
| 17.txt | WA | 28 ms | 876 KiB |
| 18.txt | WA | 27 ms | 884 KiB |
| 19.txt | WA | 29 ms | 1044 KiB |
| 2.txt | WA | 28 ms | 880 KiB |
| 20.txt | WA | 30 ms | 940 KiB |
| 21.txt | WA | 28 ms | 1048 KiB |
| 22.txt | WA | 27 ms | 1048 KiB |
| 23.txt | WA | 28 ms | 872 KiB |
| 24.txt | WA | 29 ms | 872 KiB |
| 25.txt | WA | 28 ms | 1044 KiB |
| 26.txt | WA | 27 ms | 928 KiB |
| 27.txt | WA | 27 ms | 940 KiB |
| 28.txt | WA | 28 ms | 876 KiB |
| 29.txt | WA | 28 ms | 908 KiB |
| 3.txt | WA | 26 ms | 936 KiB |
| 4.txt | WA | 27 ms | 1048 KiB |
| 5.txt | WA | 28 ms | 1040 KiB |
| 6.txt | WA | 26 ms | 880 KiB |
| 7.txt | WA | 27 ms | 1052 KiB |
| 8.txt | WA | 27 ms | 944 KiB |
| 9.txt | WA | 28 ms | 876 KiB |
| subtask0_1.txt | WA | 28 ms | 880 KiB |
| subtask0_2.txt | WA | 29 ms | 876 KiB |
| subtask0_3.txt | WA | 28 ms | 872 KiB |