# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
471507 | rainboy | Aron (COCI17_aron) | C11 | 1 ms | 276 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int main() {
int n, ans;
char c;
scanf("%d", &n);
c = '?', ans = 1;
while (n--) {
static char s[2];
scanf("%s", s);
if (c != s[0])
c = s[0], ans++;
}
printf("%d\n", ans);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |