結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-08-04 21:29:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 682 bytes |
| コンパイル時間 | 1,364 ms |
| コンパイル使用メモリ | 156,892 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-09-14 18:02:42 |
| 合計ジャッジ時間 | 1,778 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int count=0;
for(int i=0; i<12; i++){
if(i+1 == 1 || 3 || 5 || 7 || 8 || 10 || 12){
for(int j=0; j<31; j++){
if(i+1 == j%10 + j/10){
count++;
}
}
}
else if(i+1 == 4 || 6 || 9 || 11){
for(int h=0; h<30; h++){
if(i+1 == h % 10 + h /10){
count++;
}
}
}
else{
for(int k=0; k<28; k++){
if(i+1 == k% 10+ k/10){
count++;
}
}
}
}
cout << count;
}
LV3zJigVW57oPGy