結果

問題 No.188 HAPPY DAY
ユーザー 00Asage0000Asage00
提出日時 2017-01-22 19:32:46
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 366 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 64,036 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-29 22:25:35
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "cmath"
#include "algorithm"
#include "string"
#include "vector"
using namespace std;

int s = 0;

void output() {
	cout << s << endl;
}

int main() {
	int a, b;

	for (int i = 0; i < 13; i++) {
		for (int j = 0; j < 30; j++) {

			a = j / 10;
			b = j - (10 * a);

			if (i == a + b) {
				s += 1;
			}
		}
	}


	output();

	return 0;
}
0