結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  TLwiegehtt | 
| 提出日時 | 2015-07-08 02:11:53 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 293 bytes | 
| コンパイル時間 | 511 ms | 
| コンパイル使用メモリ | 21,120 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-30 20:26:37 | 
| 合計ジャッジ時間 | 1,068 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#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;
}
            
            
            
        