結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
![]() |
提出日時 | 2016-03-03 11:46:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,500 ms |
コード長 | 236 bytes |
コンパイル時間 | 141 ms |
コンパイル使用メモリ | 22,144 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 21:35:31 |
合計ジャッジ時間 | 658 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf( "%lld", &N ); | ~~~~~^~~~~~~~~~~~~~
ソースコード
// yukicoder 311 (http://yukicoder.me/problems/848) #include<cstdio> typedef long long ll; ll N; int main() { scanf( "%lld", &N ); ll n15 = N/15, n3 = N/3, n5 = N/5; printf( "%lld\n", n15*4+(n3-n15)*2+(n5-n15)*2 ); return 0; }