結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-25 20:13:15 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 02:23:27 |
| 合計ジャッジ時間 | 927 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", times * pace);
}