結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
HIBIKU
|
| 提出日時 | 2017-01-19 21:34:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 594 ms |
| コンパイル使用メモリ | 54,420 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-31 01:16:42 |
| 合計ジャッジ時間 | 1,026 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <iostream>
using namespace std;
int main() {
// your code goes here
int count = 0,num = 0;
int i,j;
for(i=1;i<13;i++){
for(j=1;j<31;j++){
num = 0;
num+=10/j;
num+=10%j;
if(num == i) count++;
}
if(i==2||i==4||i==6||i==9||i==11){
num = 0;
num+=10/j;
num+=10%j;
if(num == i) count++;
}
}
cout <<count <<endl;
return 0;
}
HIBIKU