結果

問題 No.71 そろばん
ユーザー testestesttestestest
提出日時 2015-08-12 21:52:24
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 63 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 22,748 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-25 08:32:24
合計ジャッジ時間 1,096 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 0 ms
4,380 KB
testcase_05 AC 0 ms
4,376 KB
testcase_06 WA -
testcase_07 AC 0 ms
4,384 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 1 ms
4,376 KB
testcase_17 WA -
testcase_18 AC 1 ms
4,500 KB
testcase_19 AC 1 ms
4,376 KB
testcase_20 AC 1 ms
4,376 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:8: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long t;main(n){scanf("%d",&n);t=n+1>>1;t=!printf("%ld",t*t+n);}
        ^~~~
main.c: In function ‘main’:
main.c:1:8: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:16: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 long t;main(n){scanf("%d",&n);t=n+1>>1;t=!printf("%ld",t*t+n);}
                ^~~~~
main.c:1:16: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:16: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 long t;main(n){scanf("%d",&n);t=n+1>>1;t=!printf("%ld",t*t+n);}
                ^~~~~
main.c:1:43: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 long t;main(n){scanf("%d",&n);t=n+1>>1;t=!printf("%ld",t*t+n);}
                                           ^~~~~~
main.c:1:43: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:43: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

long t;main(n){scanf("%d",&n);t=n+1>>1;t=!printf("%ld",t*t+n);}
0