結果

問題 No.508 超ゆとり教育
ユーザー LayCurse
提出日時 2017-04-28 23:17:13
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 1,288 ms
コンパイル使用メモリ 157,604 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 18:33:10
合計ジャッジ時間 2,546 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |   scanf("%Lf",&n);
      |   ~~~~~^~~~~~~~~~

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  long double n, res;
  scanf("%Lf",&n);
  res = n*n*3;
  printf("%.0Lf\n",res);
  return 0;
}
// cLay varsion 20170428-1 [beta]

// --- original code ---
// {
//   long double n, res;
//   scanf("%Lf",&n);
//   res = n*n*3;
//   printf("%.0Lf\n",res);
// }
0