結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2020-10-04 08:02:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 417 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 66,452 KB |
最終ジャッジ日時 | 2025-01-15 02:19:53 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include<iostream>using namespace std;int main(){int t=0,x=0;for(int i = 1; i <= 12;i++){switch(i){case 2:t=28;break;case 4:case 6:case 9:case 11:t = 30;break;default:t = 31;break;}for(int j = 1; j <= t; j++){if(i == (j/10)+(j%10))x++;}}cout << x << endl;return 0;}