結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
![]() |
提出日時 | 2017-07-08 00:09:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 58,288 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:50:29 |
合計ジャッジ時間 | 728 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
ソースコード
#include<iostream> #include<cstdio> #include<vector> using namespace std; int main() { int count = 0; int n[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; for (int i = 1; i < 13; i++) { for (int k = 1; k <= n[i]; k++) { int temp = (k / 10) + (k % 10); if (k == temp) { count++; } } } cout << count << endl; return 0; }