結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー TLwiegehtt
提出日時 2015-07-08 02:11:53
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 0 ms / 1,000 ms
+ 653µs
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 44 ms
コンパイル使用メモリ 29,952 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-23 23:23:01
合計ジャッジ時間 971 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>

int main(void){
	int ans = 0;
	int i,j;
	int day[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
	
	
	for(i=1;i<=12;i++){
		for(j=1;j<=day[i];j++){
			int a,b;
			a = j/10;
			b = j%10;
			if(i == (a+b)){
				ans++;
			}
		}
	}
	
	printf("%d\n", ans);
	return 0;
}
0