結果

問題 No.188 HAPPY DAY
ユーザー HIBIKUHIBIKU
提出日時 2017-01-19 21:34:28
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 52,404 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-29 22:24:35
合計ジャッジ時間 796 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int count = 0,num = 0;
	int i,j;
	for(i=1;i<13;i++){
		for(j=1;j<31;j++){
			num = 0;
			num+=10/j;
			num+=10%j;
			if(num == i) count++;
		}
		if(i==2||i==4||i==6||i==9||i==11){
			num = 0;
			num+=10/j;
			num+=10%j;
			if(num == i) count++;
		}
	}
	cout <<count <<endl; 
	return 0;
}
0