結果

問題 No.8072 Sum of sqrt(x)
ユーザー iiljj
提出日時 2020-09-12 17:47:35
言語 cLay
(20250308-1 + boost 1.89.0)
コンパイル:
clayc _filename_
実行:
./a.out
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 98 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,419 ms
コンパイル使用メモリ 186,572 KB
実行使用メモリ 11,428 KB
最終ジャッジ日時 2026-03-26 22:54:06
合計ジャッジ時間 12,137 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 TLE * 1 -- * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:42:14: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   42 |     scanf("%ld",&x);
      |            ~~^  ~~
      |              |  |
      |              |  long long int*
      |              long int*
      |            %lld
main.cpp:42:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   42 |     scanf("%ld",&x);
      |     ~~~~~^~~~~~~~~~

ソースコード

diff #
raw source code

{__float128 a;ll n,x;rd(n);rep(n){scanf("%ld",&x);printf("%.18Lg\n",(long double)(a+=sqrtl(x)));}}
0