結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2020-02-11 05:13:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 1,575 ms |
コンパイル使用メモリ | 165,760 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 07:13:23 |
合計ジャッジ時間 | 1,743 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int ans = 0;for(int i=1;i<=12;i++) {if(i == 1) ans += 2;else if(i == 2) ans += 3;else if(i == 3) ans += 4;else if(i <= 9) ans += 3;else if(i == 10) ans += 2;else if(i == 11) ans += 1;}cout << ans << endl;}