結果

問題 No.1292 パタパタ三角形
ユーザー tailstails
提出日時 2020-11-21 01:21:10
言語 cLay
(20240104-1)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 166,664 KB
実行使用メモリ 13,224 KB
最終ジャッジ日時 2023-09-19 01:52:24
合計ジャッジ時間 3,413 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 12 ms
5,164 KB
testcase_08 AC 12 ms
5,160 KB
testcase_09 AC 73 ms
13,080 KB
testcase_10 AC 76 ms
13,084 KB
testcase_11 AC 71 ms
12,984 KB
testcase_12 AC 43 ms
12,976 KB
testcase_13 AC 42 ms
13,224 KB
testcase_14 AC 5 ms
4,376 KB
testcase_15 AC 6 ms
4,384 KB
testcase_16 AC 5 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	ll a[]={0,1,MD};
	unordered_set<ll>z;
	string s;
	rd(s);
	for(int c:s){
		ll b=sum(a(3));
		z.insert(b);
		a[c%3]=b-2a[c%3];
	}
	z.insert(sum(a(3)));
	wt((ll)z.size());
}
0