提出 #65096910


ソースコード 拡げる

#include <stdio.h>

int main(void) {
	int N, i, ans = 0;
	int logged_in = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		char S[16] = "";
		if (scanf("%15s", S) != 1) return 1;
		switch (S[3]) {
			case 'i':
				logged_in = 1;
				break;
			case 'o':
				logged_in = 0;
				break;
			case 'l':
				/* 何もしない */
				break;
			case 'v':
				ans += !logged_in;
				break;
		}
	}
	printf("%d\n", ans);
	return 0;
}

提出情報

提出日時
問題 B - Unauthorized
ユーザ mikecat
言語 C (gcc 12.2.0)
得点 200
コード長 469 Byte
結果 AC
実行時間 0 ms
メモリ 1732 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 16
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 0 ms 1712 KiB
00_sample_01.txt AC 0 ms 1732 KiB
00_sample_02.txt AC 0 ms 1724 KiB
01_random_03.txt AC 0 ms 1624 KiB
01_random_04.txt AC 0 ms 1636 KiB
01_random_05.txt AC 0 ms 1588 KiB
01_random_06.txt AC 0 ms 1640 KiB
01_random_07.txt AC 0 ms 1672 KiB
01_random_08.txt AC 0 ms 1732 KiB
01_random_09.txt AC 0 ms 1636 KiB
01_random_10.txt AC 0 ms 1592 KiB
01_random_11.txt AC 0 ms 1708 KiB
01_random_12.txt AC 0 ms 1648 KiB
01_random_13.txt AC 0 ms 1724 KiB
01_random_14.txt AC 0 ms 1700 KiB
01_random_15.txt AC 0 ms 1564 KiB