結果
問題 |
No.2088 数当てゲーム
|
ユーザー |
|
提出日時 | 2022-09-30 21:59:54 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 526 bytes |
コンパイル時間 | 3,178 ms |
コンパイル使用メモリ | 158,000 KB |
最終ジャッジ日時 | 2025-02-07 19:29:33 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 16 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <utility> #include <map> #include <set> #include <queue> #include <iomanip> #include <cstring> #include <atcoder/all> using namespace std; using namespace atcoder; typedef long long ll; #define rep(i,n) for (int i = 0; i < int(n);i++) int main(){ ll a,b; cin >> a >> b; ll ans = 0; if (a == 0){ ans = b; } else{ ll x = b/a; ans = a*x + b; } cout << ans << endl; return 0; }