結果
問題 |
No.51 やる気の問題
|
ユーザー |
|
提出日時 | 2017-03-01 13:46:55 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 05:05:15 |
合計ジャッジ時間 | 1,728 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:15:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d%d",&W,&D); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int W,D,i,x=0; scanf("%d%d",&W,&D); for(i=D;i>1;i--){ x = W/(i*i); W = W-x; } printf("%d\n",W); return 0; }