結果
問題 | No.383 レーティング |
ユーザー | testestest |
提出日時 | 2016-07-01 22:21:12 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 108 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 18,176 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 00:06:54 |
合計ジャッジ時間 | 667 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 1 ms
6,816 KB |
testcase_02 | AC | 1 ms
6,816 KB |
testcase_03 | AC | 0 ms
6,816 KB |
testcase_04 | AC | 1 ms
6,816 KB |
testcase_05 | AC | 1 ms
6,820 KB |
testcase_06 | AC | 0 ms
6,820 KB |
testcase_07 | AC | 0 ms
6,816 KB |
testcase_08 | AC | 0 ms
6,820 KB |
testcase_09 | AC | 1 ms
6,816 KB |
testcase_10 | AC | 1 ms
6,820 KB |
testcase_11 | AC | 1 ms
6,816 KB |
testcase_12 | AC | 1 ms
6,816 KB |
testcase_13 | AC | 1 ms
6,820 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[1000]; | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:2:1: warning: data definition has no type or storage class 2 | n,k,m,i,j,x,y; | ^ main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:5: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:7: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:9: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:11: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:13: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:9: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 4 | scanf("%d%d",&n,&k); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a[1000]; main.c:4:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 4 | scanf("%d%d",&n,&k); | ^~~~~ main.c:4:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:5:18: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 5 | if(k-n>0)printf("+"); |
ソースコード
a[1000]; n,k,m,i,j,x,y; main(){ scanf("%d%d",&n,&k); if(k-n>0)printf("+"); printf("%d",k-n); return 0; }