結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2016-08-25 20:16:17 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 02:23:28 |
合計ジャッジ時間 | 836 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &length); | ^~~~~~~~~~~~~~~~~~~~ main.c:9:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d", &pace); | ^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int length, pace, times; printf("input length ; "); scanf("%d", &length); printf("input pace ; "); scanf("%d", &pace); // times = (length-1)/(2*pace); printf("%d\n", (length - 1)/pace); }