結果
| 問題 | No.87 Advent Calendar Problem |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-16 17:54:16 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 101 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 29,252 KB |
| 最終ジャッジ日時 | 2026-02-23 19:21:26 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 23 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:16: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);}
main.c:1:82: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);}
| ^~~~~~
main.c:1:82: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);}
testestest