結果
問題 | No.1486 ロボット |
ユーザー |
![]() |
提出日時 | 2021-05-09 18:35:00 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 612 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-18 23:53:32 |
合計ジャッジ時間 | 4,336 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 TLE * 1 |
other | -- * 17 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d%d%d%d%d", &a, &b, &c, &d, &e); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int a, b, c, d, e, f = 0; int i; scanf("%d%d%d%d%d", &a, &b, &c, &d, &e); for(i = 1;i <= e;i++){ if(i % (a + b) < a && i % (c + d) < c){ f++; } } printf("%d\n", f); return 0; }