結果
問題 | No.1486 ロボット |
ユーザー |
![]() |
提出日時 | 2021-05-09 18:37:55 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-18 23:55:49 |
合計ジャッジ時間 | 3,618 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 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 = 0;i < e;i++){ if(i % (a + b) < a && i % (c + d) < c){ f++; } } printf("%d\n", f); return 0; }