結果
問題 | No.51 やる気の問題 |
ユーザー |
![]() |
提出日時 | 2014-12-03 03:57:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 1,058 ms |
コンパイル使用メモリ | 157,416 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 14:41:11 |
合計ジャッジ時間 | 1,789 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define REP(i,a,b) for(int i=a;i<(int)b;i++)#define rep(i,n) REP(i,0,n)int main() {int W,D;cin>>W>>D;rep(_, D-1) {W -= W/D/D;}cout<<W<<endl;return 0;}