結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
|
提出日時 | 2017-04-01 22:21:58 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 1,181 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 13,884 KB |
最終ジャッジ日時 | 2024-09-24 21:55:53 |
合計ジャッジ時間 | 4,209 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 6 TLE * 1 -- * 3 |
ソースコード
#include <stdio.h> int main(void) { unsigned long long int x; int cnt = 0; scanf("%llu", &x); for (int i = 1; i < x; ++i) { cnt += (i % 15 == 0) ? 4 : (i % 3 == 0) ? 2 : (i % 5 == 0) ? 2 : 0; } printf("%d\n", cnt); return 0; }