結果
| 問題 |
No.299 蟻本が読めない
|
| コンテスト | |
| ユーザー |
RCCW
|
| 提出日時 | 2017-02-07 18:03:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 1,437 ms |
| コンパイル使用メモリ | 156,500 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-24 19:51:24 |
| 合計ジャッジ時間 | 1,843 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:13:10: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘long long int’ [-Wformat=]
13 | printf("%f",sum+(n-1)*a);
| ~^ ~~~~~~~~~~~
| | |
| | long long int
| double
| %lld
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main() {
long long sum=316;
long long a=52;
int n;
cin>>n;
printf("%f",sum+(n-1)*a);
}
RCCW