結果
| 問題 |
No.1119 Division 3
|
| コンテスト | |
| ユーザー |
goro gen
|
| 提出日時 | 2020-08-06 19:24:27 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 1,129 ms |
| コンパイル使用メモリ | 27,264 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 18:33:36 |
| 合計ジャッジ時間 | 3,650 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 16 |
コンパイルメッセージ
main.c: In function 'main':
main.c:7:16: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '1000000000000000' to '-1530494976' [-Woverflow]
7 | fgets(buf, sizeof(buf), stdin);
| ^~~~~~~~~~~
main.c:7:5: warning: argument 2 value -1530494976 is negative [-Wstringop-overflow=]
7 | fgets(buf, sizeof(buf), stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:592:14: note: in a call to function 'fgets' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
ソースコード
#include<stdio.h>
int main (void)
{
char buf[1000000000000000];
long int i,n,l,m,sum;
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d %d %d", &n,&m,&l);
sum=n*m*l;
if(sum%3==0){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
goro gen