結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-06-21 21:32:15 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 308 bytes | 
| コンパイル時間 | 1,939 ms | 
| コンパイル使用メモリ | 165,176 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-25 23:48:33 | 
| 合計ジャッジ時間 | 2,471 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  for ( int m = 1; m <= 12; m++ ) {
    for (int d = 1; d <= 31; d++) {
      int tmp10 = d/10;
      int tmp1  = d - tmp10;
      ans += ( m = tmp10+tmp1 ) ? 1 : 0;
    }
  }
  cout << ans-1 << endl;  // 04/31を除く
  return 0;
}
            
            
            
        