結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
ninoinui
|
| 提出日時 | 2020-01-20 20:51:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 1,580 ms |
| コンパイル使用メモリ | 165,448 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-07-02 23:02:28 |
| 合計ジャッジ時間 | 2,020 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
struct tm t = {};
t.tm_year = 2015;
t.tm_mon = 1 - 1;
t.tm_mday = 1;
int ans = 0;
for (int i = 0; i < 365; i++) {
int d = t.tm_mday;
if (t.tm_mon + 1 == d / 10 + d % 10) ans++;
t.tm_mday++;
mktime(&t);
}
cout << ans << "\n";
}
ninoinui