結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2015-06-15 09:13:44 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 1,192 ms |
コンパイル使用メモリ | 21,120 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-30 20:20:22 |
合計ジャッジ時間 | 1,267 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <stdio.h> int main(void) { int i, j, count; int month[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; count = 0; for(i = 1;i <= 12;i++){ for(j = 1;j <= month[i - 1];j++){ if(i == j / 10 + j % 10){ count++; } } } printf("%d\n", count); return 0; }