結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2022-11-04 17:16:06 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 3,282 ms |
コンパイル使用メモリ | 119,168 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-07-18 15:47:31 |
合計ジャッジ時間 | 922 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <iostream>using namespace std;int main() {int counthappyday=-1, sum=0;for(int month=1; month<=12; month++){for(int day=1; day<=31; day++){int a = day/10;int b = (day%10);if(a+b==month){counthappyday++;}}}cout << counthappyday << endl;return 0;}