結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2016-12-14 23:26:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 542 bytes |
コンパイル時間 | 585 ms |
コンパイル使用メモリ | 55,996 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:13:44 |
合計ジャッジ時間 | 874 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <iostream> int main() { int32_t count = 0; for (int32_t i = 1; i <= 12; i++) { for (int32_t j = 1; j <= 31; j++) { if (i == 2 && j == 29) break; if (j == 31 && (i == 4 || i == 6 || i == 9 || i == 11)) break; //std::cout << i << " / " << j << std::endl; int32_t X = i; int32_t Y1 = j / 10; int32_t Y2 = j % 10; if(X == Y1 + Y2){ //std::cout << "HAPPY DAY" << std::endl; count++; } } } std::cout << count << std::endl; return 0; }