結果

問題 No.188 HAPPY DAY
ユーザー Tearon
提出日時 2016-09-03 19:39:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 54,100 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-31 01:03:10
合計ジャッジ時間 1,141 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#define REP(i,n) for( int i = 1; i <= n; i++ )
using namespace std;
int main(){
  int cnt = 0;
  REP(i,12){
    if( i == 2 || i == 4 || i == 6 || i == 9 || i == 11 )
      REP( j, 30 ) if( (j / 10) + (j % 10) == i ) cnt++;
    else
      REP( j, 31 ) if( (j / 10) + (j % 10) == i ) cnt++;
  }
  cout << cnt << '\n';
}
0