結果
問題 |
No.521 Cheeses and a Mousetrap(チーズとネズミ捕り)
|
ユーザー |
![]() |
提出日時 | 2017-08-25 05:19:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 1,489 ms |
コンパイル使用メモリ | 165,740 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:11:44 |
合計ジャッジ時間 | 2,362 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 4 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b; if(b==0||a<b) c=a; else if(a/b==1){ if(a==2&&b==2) c=a; else c=1; } else c=2; cout << a-c << endl; return 0; }