結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 17:07:28 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 24,832 KB |
| 実行使用メモリ | 8,608 KB |
| 最終ジャッジ日時 | 2025-03-03 17:07:31 |
| 合計ジャッジ時間 | 2,345 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 21 |
ソースコード
#include <stdio.h>
void main(){
int total = 0;
int inputTotal = scanf("%d\n",&total);
if(inputTotal == 2){
printf("totalの入力ミス\n");
}
int eat = 0;
int inputEat = scanf("%d\n",&eat);
if(inputEat == 2){
printf("eatの入力ミス\n");
}
int count = 0;
while(total <= 1){
count++;
total -= eat*2;
}
printf("%d",count);
}
Maeda