結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
_5h787575
|
| 提出日時 | 2017-07-08 19:39:34 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 30,152 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:12:19 |
| 合計ジャッジ時間 | 352 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
8 | printf("%d",count);
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | int main() {
ソースコード
int main() {
int day[12]= {31,28,31,30,31,30,31,31,30,31,30,31};
int count = 0,i,j;
for(i = 0;i < 12;i++){
for(j = 0;j<day[i];j++)
if (((i+1)-(j/10 + j % 10))==0) count++;
}
printf("%d",count);
}
_5h787575