結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
HIBIKU
|
| 提出日時 | 2017-01-19 21:34:28 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 70,640 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-04 12:38:52 |
| 合計ジャッジ時間 | 1,059 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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