結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
uliba3
|
| 提出日時 | 2020-06-12 13:44:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 1,798 ms |
| コンパイル使用メモリ | 167,984 KB |
| 実行使用メモリ | 6,812 KB |
| 最終ジャッジ日時 | 2024-06-24 03:51:56 |
| 合計ジャッジ時間 | 1,915 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main()
{
vector<int> months={0,31,28,31,30,31,30,31,31,30,31,30,31};
int count=0;
for(int day=1;day<32;day++)
{
int num=day%10+day/10;
if(months[num]>=day)count++;
}
printf("%d",count);
}
uliba3