結果
問題 | No.188 HAPPY DAY |
ユーザー | Ronlynes |
提出日時 | 2017-01-29 01:57:26 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 58,464 KB |
実行使用メモリ | 4,376 KB |
最終ジャッジ日時 | 2023-08-29 22:25:44 |
合計ジャッジ時間 | 832 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
ソースコード
#include <iostream> #include <algorithm> #include <string> using namespace std; int main() { int a, cnt=0, b; for(int i=1;i<13;i++){ for(int j=1;j<31;j++){ a = j /10; b = j - (a*10); if(i == a+b){ cnt++; } } } cout << cnt << endl; return 0; }