結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2021-08-13 21:42:45 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 285 bytes |
| コンパイル時間 | 388 ms |
| コンパイル使用メモリ | 28,928 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-03 21:42:15 |
| 合計ジャッジ時間 | 1,195 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
// yuki 1643 Not Substring
// 2021.8.13
#include <stdio.h>
char S[105];
int main()
{
char *s;
scanf("%s", s = S);
int w = 0;
while (*s) {
if (*s == 'a') {
char *p = s++; while (*s == 'a') s++;
w += s-p;
} else s++;
}
while (w--) putchar('a');
puts("a");
return 0;
}
bal4u