結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2018-08-22 17:51:54 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 664 ms |
コンパイル使用メモリ | 54,624 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 10:55:49 |
合計ジャッジ時間 | 1,321 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <iostream>using namespace std;int main(){int N[]={31,28,31,30,31,30,31,31,30,31,30,31};int judge,count=0;for(int month = 1; month <= 12 ; month++){for(int day = 1; day < N[month-1]; day++){judge = day / 10 + day % 10;if(judge == month) count++;}}cout << count << endl;return 0;}