結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2016-09-03 19:38:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 479 ms |
コンパイル使用メモリ | 54,592 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-31 01:02:56 |
合計ジャッジ時間 | 893 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
ソースコード
#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'; } }