結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2017-03-01 21:16:07 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 521 ms |
コンパイル使用メモリ | 54,484 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:23:20 |
合計ジャッジ時間 | 895 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <iostream>#include <string>#define REP(i,n) for(int i=0;i<(n);++i)#define PB push_backusing namespace std;int x = 31,y = 30,z = 28;int dmax[] = {x,z,x,y,x,y,x,x,y,x,y,x};int main(){int r = 0;REP(i, 32){int m = i / 10 + i % 10;if(m >= 1 && m <= 12 && dmax[m-1] >= i){++r;}}cout << r << endl;}