結果
問題 | No.1643 Not Substring |
ユーザー |
![]() |
提出日時 | 2021-08-13 21:24:12 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-03 21:12:30 |
合計ジャッジ時間 | 944 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include<stdio.h>int main(){char s[102];scanf("%s", s);int i, cnt = 0;for (i = 0; s[i] != '\0'; i++)if (s[i] == 'a')cnt++;for (i = 0; i <= cnt; i++)printf("a");printf("\n");return 0;}