結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-12 15:46:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 406 bytes |
| コンパイル時間 | 516 ms |
| コンパイル使用メモリ | 66,816 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 17:47:25 |
| 合計ジャッジ時間 | 839 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int c[]={31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int cnt = 0;
for(int i=0; i<12; i++){
int month = i+1;
for(int j=1;j<=c[i];j++){
int ten = j/10;
int one = j%10;
if(ten+one==month){
cnt++;
}
}
}
cout << cnt << endl;
}