結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 17:18:05 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 361 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 37,568 KB |
| 最終ジャッジ日時 | 2026-02-22 12:50:19 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 22 |
ソースコード
#include <stdio.h>
void main(){
int total = 0;
int inputTotal = scanf("%d",&total);
if(inputTotal == 2){
printf("totalの入力ミス\n");
}
int eat = 0;
int inputEat = scanf("%d",&eat);
if(inputEat == 2){
printf("eatの入力ミス\n");
}
int count = 0;
while(total > eat*2){
count++;
total -= eat*2;
}
printf("%d\n",count*eat);
}
Maeda