結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
iiljj
|
| 提出日時 | 2020-09-12 17:47:35 |
| 言語 | cLay (20241019-1) |
| 結果 |
AC
|
| 実行時間 | 1,933 ms / 2,000 ms |
| コード長 | 98 bytes |
| コンパイル時間 | 1,876 ms |
| コンパイル使用メモリ | 170,084 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 14:00:30 |
| 合計ジャッジ時間 | 60,454 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
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);
| ~~~~~^~~~~~~~~~
ソースコード
{__float128 a;ll n,x;rd(n);rep(n){scanf("%ld",&x);printf("%.18Lg\n",(long double)(a+=sqrtl(x)));}}
iiljj