結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2016-12-21 13:59:07 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 691 ms |
| コンパイル使用メモリ | 64,916 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-31 01:14:45 |
| 合計ジャッジ時間 | 972 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int A[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int happy = 0;
int jyu,ichi;
for(int i=0;i<12;i++){
for(int j=0;j<=A[i];j++){
jyu=j/10;
ichi=j%10;
if(i==ichi+jyu){
happy++;
}
}
}
cout<<happy<<endl;
return 0;
}
dnish