提出 #75416692


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;

#define int long long 

const int N=2e5+5;

bool st;
int a[4][8];
bool ed;

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	cerr<<(double)(&st-&ed)/1024/1024<<'\n';
	for(int i=1;i<=3;i++) {
		for(int j=1;j<=6;j++) {cin>>a[i][j];}
	}int cnt=0;
	for(int i=1;i<=6;i++) {
		for(int j=1;j<=6;j++) {
			for(int k=1;k<=6;k++) {
				if(a[1][i]==4&&a[2][j]==5&&a[3][k]==6) cnt++;
				if(a[1][i]==5&&a[2][j]==4&&a[3][k]==6) cnt++;
				if(a[1][i]==4&&a[2][j]==6&&a[3][k]==5) cnt++;
				if(a[1][i]==5&&a[2][j]==6&&a[3][k]==4) cnt++;
				if(a[1][i]==6&&a[2][j]==5&&a[3][k]==4) cnt++;
				if(a[1][i]==6&&a[2][j]==4&&a[3][k]==5)  cnt++;
			}
		}
	}
	cout<<(double)(cnt)/216<<'\n';
	return 0;
}

提出情報

提出日時
問題 B - 456
ユーザ wallacewan
言語 C++23 (GCC 15.2.0)
得点 200
コード長 780 Byte
結果 AC
実行時間 1 ms
メモリ 3868 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 14
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
random_01.txt AC 1 ms 3692 KiB
random_02.txt AC 1 ms 3704 KiB
random_03.txt AC 1 ms 3704 KiB
random_04.txt AC 1 ms 3708 KiB
random_05.txt AC 1 ms 3868 KiB
random_06.txt AC 1 ms 3648 KiB
random_07.txt AC 1 ms 3696 KiB
random_08.txt AC 1 ms 3756 KiB
random_09.txt AC 1 ms 3868 KiB
random_10.txt AC 1 ms 3868 KiB
random_11.txt AC 1 ms 3700 KiB
random_12.txt AC 1 ms 3832 KiB
sample_01.txt AC 1 ms 3828 KiB
sample_02.txt AC 1 ms 3828 KiB