結果

問題 No.2201 p@$$w0rd
ユーザー ytftytft
提出日時 2023-02-26 14:42:08
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 28,932 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-12 06:15:11
合計ジャッジ時間 1,980 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 0 ms
4,348 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 0 ms
4,352 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 WA -
testcase_11 AC 1 ms
4,348 KB
testcase_12 WA -
testcase_13 AC 0 ms
4,352 KB
testcase_14 AC 0 ms
4,352 KB
testcase_15 WA -
testcase_16 AC 0 ms
4,348 KB
testcase_17 AC 0 ms
4,348 KB
testcase_18 AC 0 ms
4,352 KB
testcase_19 AC 1 ms
4,348 KB
testcase_20 AC 0 ms
4,356 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 0 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main(){
	char pass[8],list[2][2]={{'l','o'},{'a','s'}};
	int i,j,k,ans[2]={0,0};
	scanf("%s",&pass);
	for(i=0;i<8;++i){
		for(j=0;j<2;++j){
			for(k=0;k<2;++k){
				if(pass[i]==list[j][k]){
					++ans[j];
					break;
				}
			}
		}
	}
	printf("%d\n",((1<<ans[0])-1)*((1<<ans[1])-1));
}
0