結果
問題 |
No.51 やる気の問題
|
ユーザー |
![]() |
提出日時 | 2018-09-15 22:12:26 |
言語 | C (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 29,696 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 07:15:55 |
合計ジャッジ時間 | 1,532 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
ソースコード
#include <stdio.h> #include <math.h> int main(void){ int W; int D; scanf("%d %d",&W,&D); for(int i = D; i > 1; i--){ W -= W / (i*i); // printf("Day %d, Work残量 %d\n",i,W); // check ok } printf("%d\n",W); return 0; }