結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
yamaken1343
|
| 提出日時 | 2015-10-26 22:10:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 147 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 18:14:31 |
| 合計ジャッジ時間 | 1,731 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 4 RE * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d%d",&l, &k);
| ~~~~~^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
int l,k,a;
scanf("%d%d",&l, &k);
a = l/(k*2);
if(l%(k/2) == 0) a--;
printf("%d",k*a);
return 0;
}
yamaken1343