結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-12 15:43:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 510 ms |
| コンパイル使用メモリ | 66,596 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 17:47:23 |
| 合計ジャッジ時間 | 868 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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<=month;j++){
int ten = j/10;
int one = j%10;
if(ten+one==month) cnt++;
}
}
cout << cnt << endl;
}