結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
uliba3
|
| 提出日時 | 2020-07-13 14:43:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 180 bytes |
| コンパイル時間 | 2,208 ms |
| コンパイル使用メモリ | 192,112 KB |
| 最終ジャッジ日時 | 2025-01-11 20:13:47 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | int L,K;scanf("%d %d",&L,&K);
| ~~~~~^~~~~~~~~~~~~~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main()
{
int L,K;scanf("%d %d",&L,&K);
int cajiru=L%(2*K);
if(cajiru==0)cajiru=2*K;
printf("%d\n",(L-cajiru)/2);
}
uliba3