結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-25 20:13:15 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 28,872 KB |
| 最終ジャッジ日時 | 2026-02-23 22:17:23 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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);
}