結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー lifefucker_1911
提出日時 2017-10-02 23:14:59
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 269µs
コード長 687 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 343 ms
コンパイル使用メモリ 92,608 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-10-09 20:37:48
合計ジャッジ時間 1,040 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <stack>
#include <queue>
#include <vector>
#include <time.h>
using namespace std;

int main()
{
	int a[12],b[4],c[10];
	int count = 0;
	for(int i = 0; i < 12; i++){
		a[i] = i + 1;
	}
	for(int i = 0; i < 4; i++){
		b[i] = i;
	}
	for(int i = 0; i < 10; i++){
		c[i] = i;
	}
	for(int i = 0; i < 12; i++){
		for(int j = 0; j < 4; j++){
			for(int k = 0; k < 10; k++){
				if( b[j] == 3 && c[k] != 0 ){
					break;
				}
				if( a[i] == b[j] + c[k]){
					//cout << a[i] << b[j] << c[k] <<endl;
					count++;
				}
			}
		}
	}
	cout << count <<endl;
	
	return 0;
}

0