結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2016-04-14 07:09:56 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 760 ms |
コンパイル使用メモリ | 23,808 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-30 21:22:47 |
合計ジャッジ時間 | 1,038 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <stdio.h>#include <stdlib.h>int happy_day = 0;void check_day(int month, int day);int main(void){int i, j;for (i = 1; i <= 12; i++) {for (j = 1; j <= 30; j++) {check_day(i, j);}}printf("%d\n", happy_day);return 0;}void check_day(int month, int day){int ten = day/10, one = day%10;if (month == ten+one) {happy_day++;}}