結果
問題 |
No.809 かけ算
|
ユーザー |
![]() |
提出日時 | 2019-04-13 06:55:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 625 ms |
コンパイル使用メモリ | 57,172 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 06:49:23 |
合計ジャッジ時間 | 1,030 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:16: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] 15 | printf("%lld %lld\n", 1, C); | ~~~^ ~ | | | | | int | long long int | %d main.cpp:14:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%lld", &C); | ~~~~~^~~~~~~~~~~~
ソースコード
#include <cstdio> #include <vector> #include <algorithm> #include <iterator> #include <cmath> typedef long long ll; template<class T> void chmax(T& a,const T& b) { if(a<b) a=b; } template<class T> T abs(const T& a) { if(a<0) return -a; else return a; } int main() { long long C; scanf("%lld", &C); printf("%lld %lld\n", 1, C); return 0; }