結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
silopy
|
| 提出日時 | 2019-07-03 22:39:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 566 ms |
| コンパイル使用メモリ | 65,644 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 05:37:45 |
| 合計ジャッジ時間 | 1,605 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
using lint=int64_t;
int main()
{
lint W,D;
cin >> W >> D;
for(lint i=D;i>=2;i--)
W=W-W/(i*i);
cout << W << endl;
return 0;
}
silopy