結果
問題 | No.63 ポッキーゲーム |
ユーザー | Ytz_Ichi |
提出日時 | 2018-07-17 12:01:23 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 166 bytes |
コンパイル時間 | 474 ms |
コンパイル使用メモリ | 27,884 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-16 06:01:28 |
合計ジャッジ時間 | 9,018 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,380 KB |
testcase_01 | AC | 0 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 0 ms
4,380 KB |
testcase_06 | AC | 0 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 0 ms
4,376 KB |
testcase_09 | AC | 2 ms
4,376 KB |
testcase_10 | WA | - |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
コンパイルメッセージ
main.c: 関数 ‘main’ 内: main.c:5:3: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 5 | scanf("%d %d\n",&a,&b); | ^~~~~ main.c:2:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ 1 | #include <stdlib.h> +++ |+#include <stdio.h> 2 | int main() { main.c:5:3: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 5 | scanf("%d %d\n",&a,&b); | ^~~~~ main.c:5:3: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:11:3: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 11 | printf("%d\n",c); | ^~~~~~ main.c:11:3: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:11:3: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] main.c:11:3: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
#include <stdlib.h> int main() { float d; int a,b,c; scanf("%d %d\n",&a,&b); d=a/2.0; while(d>b){ d-=b; c+=b; } printf("%d\n",c); return 0; }