結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-04 09:44:50 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 194 ms / 5,000 ms |
| コード長 | 202 bytes |
| コンパイル時間 | 568 ms |
| コンパイル使用メモリ | 24,448 KB |
| 実行使用メモリ | 8,604 KB |
| 最終ジャッジ日時 | 2025-03-04 09:44:52 |
| 合計ジャッジ時間 | 2,512 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&all);
| ^~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d",&bite);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
int all = 0;
scanf("%d",&all);
int bite = 0;
scanf("%d",&bite);
int count = 0;
while(all > bite*2){
all -= bite*2;
count++;
}
printf("%d",bite*count);
}
sasa