結果
| 問題 |
No.311 z in FizzBuzzString
|
| ユーザー |
umashika
|
| 提出日時 | 2016-01-29 23:46:53 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 21:33:06 |
| 合計ジャッジ時間 | 604 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 11 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lu",&N);
| ^~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
unsigned long int N;
unsigned long int a,b,c;
unsigned long int ans;
scanf("%lu",&N);
a=N/3;b=N/3;c=N/3;
ans = ((a-c)+(b-3)+c*2)*2;
printf("%lu",ans);
return 0;
}
umashika