結果
問題 |
No.3179 3 time mod
|
ユーザー |
|
提出日時 | 2025-06-14 11:11:49 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 212 bytes |
コンパイル時間 | 388 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 52,944 KB |
最終ジャッジ日時 | 2025-06-14 11:11:54 |
合計ジャッジ時間 | 4,517 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 41 |
ソースコード
N = int(input()) P, Q, R = map(int, input().split()) A, B, C = map(int, input().split()) i = 0 while i <= N: if i%P == A and i%Q == B and i%R == C: break i += 1 print((N-i)//(P*Q*R)+1 if i <= N else 0)